about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2023-12-29 08:43:50 -0800
committerH.J. Lu <hjl.tools@gmail.com>2024-01-01 05:22:48 -0800
commit8d9f9c44605d1b4e3152bdd3f8f0daebd790380f (patch)
tree15ca4d3161b33377f8822bec653244db0a91fa16 /elf
parentedb5e0c8f915a798629717b5680a852c8bb3db25 (diff)
downloadglibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.tar.gz
glibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.tar.xz
glibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.zip
elf: Always provide _dl_get_dl_main_map in libc.a
Always provide _dl_get_dl_main_map in libc.a.  It will be used by x86
to process PT_GNU_PROPERTY segment.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-support.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 837fa1c836..70c5b3599a 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -344,7 +344,6 @@ _dl_non_dynamic_init (void)
 DL_SYSINFO_IMPLEMENTATION
 #endif
 
-#if ENABLE_STATIC_PIE
 /* Since relocation to hidden _dl_main_map causes relocation overflow on
    aarch64, a function is used to get the address of _dl_main_map.  */
 
@@ -353,7 +352,6 @@ _dl_get_dl_main_map (void)
 {
   return &_dl_main_map;
 }
-#endif
 
 /* This is used by _dl_runtime_profile, not used on static code.  */
 void