diff options
author | 2020-01-10 19:14:56 -0300 | |
---|---|---|
committer | 2020-01-17 09:05:03 -0300 | |
commit | 18363b4f010da9ba459b13310b113ac0647c2fcc (patch) | |
tree | a9b4b22d7fb65d7d219eb0e10b996de971da54e9 /elf | |
parent | powerpc: Initialize rtld_global_ro for static dlopen [BZ #20802] (diff) | |
download | glibc-18363b4f010da9ba459b13310b113ac0647c2fcc.tar.gz glibc-18363b4f010da9ba459b13310b113ac0647c2fcc.tar.bz2 glibc-18363b4f010da9ba459b13310b113ac0647c2fcc.zip |
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>
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-support.c | 3 | ||||
-rw-r--r-- | elf/dl-sysdep.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c index ad791ab6ab..7704c101c5 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -36,6 +36,7 @@ #include <stackinfo.h> #include <dl-vdso.h> #include <dl-vdso-setup.h> +#include <dl-auxv.h> extern char *__progname; char **_dl_argv = &__progname; /* This is checked for some error messages. */ @@ -293,9 +294,7 @@ _dl_aux_init (ElfW(auxv_t) *av) case AT_RANDOM: _dl_random = (void *) av->a_un.a_val; break; -# ifdef DL_PLATFORM_AUXV DL_PLATFORM_AUXV -# endif } if (seen == 0xf) { diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c index 53bbee14f4..854570821c 100644 --- a/elf/dl-sysdep.c +++ b/elf/dl-sysdep.c @@ -45,6 +45,7 @@ #include <tls.h> #include <dl-tunables.h> +#include <dl-auxv.h> extern char **_environ attribute_hidden; extern char _end[] attribute_hidden; @@ -180,9 +181,7 @@ _dl_sysdep_start (void **start_argptr, case AT_RANDOM: _dl_random = (void *) av->a_un.a_val; break; -#ifdef DL_PLATFORM_AUXV DL_PLATFORM_AUXV -#endif } #ifndef HAVE_AUX_SECURE |