From c90363403b57b3b7919061851cb3e6d9c85e784a Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 18 Jan 2022 13:53:11 +0100 Subject: elf: Move _dl_setup_hash to its own file And compile it with the early CFLAGS. _dl_setup_hash is called very early for the ld.so link map, so it should be compiled differently. Reviewed-by: Stefan Liebler Tested-by: Stefan Liebler --- elf/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'elf/Makefile') diff --git a/elf/Makefile b/elf/Makefile index c6c4710e16..692a65b061 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -74,6 +74,7 @@ dl-routines = \ dl-reloc \ dl-runtime \ dl-scope \ + dl-setup_hash \ dl-sort-maps \ dl-thread_gscope_wait \ dl-tls \ @@ -169,6 +170,7 @@ CFLAGS-.os += $(call elide-stack-protector,.os,$(all-rtld-routines)) # Add the requested compiler flags to the early startup code. CFLAGS-dl-printf.os += $(rtld-early-cflags) +CFLAGS-dl-setup_hash.os += $(rtld-early-cflags) CFLAGS-dl-sysdep.os += $(rtld-early-cflags) CFLAGS-dl-tunables.os += $(rtld-early-cflags) CFLAGS-dl-write.os += $(rtld-early-cflags) -- cgit 1.4.1