glibc/csu
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
..
Makefile Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions Remove unused %include lines from Versions files. 2014-02-22 00:58:54 -08:00
abi-note.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
check_fds.c Assume that O_NOFOLLOW is always defined 2017-04-13 21:28:18 +02:00
dso_handle.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
elf-init.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
errno-loc.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
errno.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gmon-start.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
init-first.c getopt: remove USE_NONOPTION_FLAGS 2017-04-07 07:45:53 -04:00
init.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
libc-start.c Delay initialization of CPU features struct in static binaries 2017-05-31 06:38:33 +05:30
libc-tls.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
start.c More fallout from supporting only ELF 2012-01-08 00:45:01 -05:00
sysdep.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
version.c Update copyright dates not handled by scripts/update-copyrights. 2017-01-01 00:26:24 +00:00