powerpc: Move cache line size to rtld_global_ro
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 10 Jan 2020 22:14:56 +0000 (19:14 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 17 Jan 2020 12:05:03 +0000 (09:05 -0300)
commit18363b4f010da9ba459b13310b113ac0647c2fcc
treea9b4b22d7fb65d7d219eb0e10b996de971da54e9
parentc908ae0492cb9c68736306e2bceec7244a940568
powerpc: Move cache line size to rtld_global_ro

GCC 10.0 enabled -fno-common by default and this started to point that
__cache_line_size had been implemented in 2 different places: loader and
libc.

In order to avoid this duplication, the libc variable has been removed
and the loader variable is moved to rtld_global_ro.

File sysdeps/unix/sysv/linux/powerpc/dl-auxv.h has been added in order
to reuse code for both static and dynamic linking scenarios.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
20 files changed:
elf/dl-support.c
elf/dl-sysdep.c
sysdeps/generic/dl-auxv.h [new file with mode: 0644]
sysdeps/powerpc/Makefile
sysdeps/powerpc/dl-procinfo.c
sysdeps/powerpc/mod-cache-ppc.c [new file with mode: 0644]
sysdeps/powerpc/powerpc32/a2/memcpy.S
sysdeps/powerpc/powerpc32/dl-machine.c
sysdeps/powerpc/powerpc32/memset.S
sysdeps/powerpc/powerpc32/sysdep.h
sysdeps/powerpc/powerpc64/a2/memcpy.S
sysdeps/powerpc/powerpc64/memset.S
sysdeps/powerpc/powerpc64/sysdep.h
sysdeps/powerpc/rtld-global-offsets.sym
sysdeps/powerpc/tst-cache-ppc-static-dlopen.c [new file with mode: 0644]
sysdeps/powerpc/tst-cache-ppc-static.c [new file with mode: 0644]
sysdeps/powerpc/tst-cache-ppc.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/dl-auxv.h [moved from sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c with 60% similarity]
sysdeps/unix/sysv/linux/powerpc/dl-static.c
sysdeps/unix/sysv/linux/powerpc/libc-start.c