glibc/sysdeps
Siddhesh Poyarekar 4158ba082c Delay initialization of CPU features struct in static binaries
Allow the CPU features structure set up to be overridden by tunables
by delaying it to until after tunables are initialized.  The
initialization is already delayed in dynamically linked glibc, it is
only in static binaries that the initialization is set early to allow
it to influence IFUNC relocations that happen in libc-start.  It is a
bit too early however and there is a good place between tunables
initialization and IFUNC relocations where this can be done.

Verified that this does not regress the testsuite.

	* csu/libc-start.c [!ARCH_INIT_CPU_FEATURES]: Define
	ARCH_INIT_CPU_FEATURES.
	(LIBC_START_MAIN): Call it.
	* sysdeps/unix/sysv/linux/aarch64/libc-start.c
	(__libc_start_main): Remove.
	(ARCH_INIT_CPU_FEATURES): New macro.
	* sysdeps/x86/libc-start.c (__libc_start_main): Remove.
	(ARCH_INIT_CPU_FEATURES): New macro.
2017-05-31 06:38:33 +05:30
..
aarch64 aarch64: Thunderx specific memcpy and memmove 2017-05-24 16:46:48 -07:00
alpha Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
arm Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457). 2017-05-23 11:49:48 +00:00
generic Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457). 2017-05-23 11:49:48 +00:00
gnu manual: Convert errno @comments to new @errno macro. 2017-05-19 22:47:53 -07:00
hppa Remove wrong definitions from pthread header refactor 2017-05-11 10:46:03 -03:00
i386 Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457). 2017-05-23 11:49:48 +00:00
ia64 Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
ieee754 float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k m68k: handle default PIE 2017-05-29 08:41:50 +02:00
mach Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
microblaze Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
mips Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457). 2017-05-23 11:49:48 +00:00
nios2 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
nptl fork: Remove bogus parent PID assertions [BZ #21386] 2017-05-12 16:04:16 +02:00
posix Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
powerpc Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
pthread Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
s390 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sh Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sparc Remove useless comment from sysdeps/sparc/sparc32/dl-machine.h 2017-05-23 01:10:29 +05:30
tile Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
unix Delay initialization of CPU features struct in static binaries 2017-05-31 06:38:33 +05:30
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
x86 Delay initialization of CPU features struct in static binaries 2017-05-31 06:38:33 +05:30
x86_64 x86_64: Remove redundant REX bytes from memchr.S 2017-05-30 12:39:14 -07:00