aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-find_object.c
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 /elf/dl-find_object.c
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 'elf/dl-find_object.c')
-rw-r--r--elf/dl-find_object.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/elf/dl-find_object.c b/elf/dl-find_object.c
index 513e464011..1e76373292 100644
--- a/elf/dl-find_object.c
+++ b/elf/dl-find_object.c
@@ -356,7 +356,7 @@ _dlfo_lookup (uintptr_t pc, struct dl_find_object_internal *first1, size_t size)
}
int
-__dl_find_object (void *pc1, struct dl_find_object *result)
+_dl_find_object (void *pc1, struct dl_find_object *result)
{
uintptr_t pc = (uintptr_t) pc1;
@@ -463,8 +463,7 @@ __dl_find_object (void *pc1, struct dl_find_object *result)
return -1;
} /* Transaction retry loop. */
}
-hidden_def (__dl_find_object)
-weak_alias (__dl_find_object, _dl_find_object)
+rtld_hidden_def (_dl_find_object)
/* _dlfo_process_initial is called twice. First to compute the array
sizes from the initial loaded mappings. Second to fill in the