aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
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 /sysdeps/generic
parentedb5e0c8f915a798629717b5680a852c8bb3db25 (diff)
downloadglibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.zip
glibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.tar.gz
glibc-8d9f9c44605d1b4e3152bdd3f8f0daebd790380f.tar.bz2
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 'sysdeps/generic')
-rw-r--r--sysdeps/generic/ldsodefs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 9b50ddd..bbf51bc 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -1172,10 +1172,6 @@ void __libc_setup_tls (void);
# if ENABLE_STATIC_PIE
/* Relocate static executable with PIE. */
extern void _dl_relocate_static_pie (void) attribute_hidden;
-
-/* Get a pointer to _dl_main_map. */
-extern struct link_map * _dl_get_dl_main_map (void)
- __attribute__ ((visibility ("hidden")));
# else
# define _dl_relocate_static_pie()
# endif
@@ -1217,6 +1213,9 @@ rtld_hidden_proto (_dl_deallocate_tls)
extern void _dl_nothread_init_static_tls (struct link_map *) attribute_hidden;
+/* Get a pointer to _dl_main_map. */
+extern struct link_map * _dl_get_dl_main_map (void) attribute_hidden;
+
/* Find origin of the executable. */
extern const char *_dl_get_origin (void) attribute_hidden;