mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user