summaryrefslogtreecommitdiffstats
path: root/ldso/libdl
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-02-12 13:23:19 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-02-12 13:23:19 +0000
commitfa1f7630f828e52ab68be7a5dd30f8748171cd01 (patch)
tree900c8eb66e93cbcebdd139efa3ba1385bce35692 /ldso/libdl
parent07fe29fb136025431135193917a3054620a74b3d (diff)
downloaduClibc-alpine-fa1f7630f828e52ab68be7a5dd30f8748171cd01.tar.bz2
uClibc-alpine-fa1f7630f828e52ab68be7a5dd30f8748171cd01.tar.xz
Use DL_RELOC_ADDR when dealing with DL_LOADADDR_TYPE types. Fixes gnu-hash
compilation on Blackfin.
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/libdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 4f164d702..0791bd612 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -761,7 +761,7 @@ int dladdr(const void *__address, Dl_info * __info)
do {
ElfW(Addr) symbol_addr;
- symbol_addr = (ElfW(Addr)) pelf->loadaddr + symtab[si].st_value;
+ symbol_addr = (ElfW(Addr)) DL_RELOC_ADDR(pelf->loadaddr, symtab[si].st_value);
if (symbol_addr <= (ElfW(Addr))__address && (!sf || sa < symbol_addr)) {
sa = symbol_addr;
sn = si;