aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-02-01 12:37:58 +0100
committerFlorian Weimer <fweimer@redhat.com>2025-02-01 12:37:58 +0100
commit96429bcc91a14f71b177ddc5e716de3069060f2c (patch)
treed26477f14c50d4e906bf9c2e9054e68ac3ece0fb /include
parentcf51d18b9daf510de1997d4d87328c03103a6b68 (diff)
downloadglibc-96429bcc91a14f71b177ddc5e716de3069060f2c.tar.xz
glibc-96429bcc91a14f71b177ddc5e716de3069060f2c.zip
elf: Do not add a copy of _dl_find_object to libc.so
This reduces code size and dependencies on ld.so internals from libc.so. Fixes commit f4c142bb9fe6b02c0af8cfca8a920091e2dba44b ("arm: Use _dl_find_object on __gnu_Unwind_Find_exidx (BZ 31405)"). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/dlfcn.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index f49ee1b0c9..a44420fa37 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -4,8 +4,7 @@
#include <link.h> /* For ElfW. */
#include <stdbool.h>
-extern __typeof (_dl_find_object) __dl_find_object;
-hidden_proto (__dl_find_object)
+rtld_hidden_proto (_dl_find_object)
/* Internally used flag. */
#define __RTLD_DLOPEN 0x80000000