about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-01-18 13:53:11 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-01-18 14:40:21 +0100
commitc90363403b57b3b7919061851cb3e6d9c85e784a (patch)
treeb54bae71eeaa3e01574aeb2f0ec45a1d3251b362 /elf/Makefile
parentf8b765bec44e6c464a7eabf80e58c6851ca15ac3 (diff)
downloadglibc-c90363403b57b3b7919061851cb3e6d9c85e784a.tar.gz
glibc-c90363403b57b3b7919061851cb3e6d9c85e784a.tar.xz
glibc-c90363403b57b3b7919061851cb3e6d9c85e784a.zip
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 <stli@linux.ibm.com>
Tested-by: Stefan Liebler <stli@linux.ibm.com>
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile2
1 files changed, 2 insertions, 0 deletions
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)