summaryrefslogtreecommitdiff
path: root/src/linker
diff options
context:
space:
mode:
Diffstat (limited to 'src/linker')
-rw-r--r--src/linker/linker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker/linker.c b/src/linker/linker.c
index f91316c..bd774a4 100644
--- a/src/linker/linker.c
+++ b/src/linker/linker.c
@@ -1392,7 +1392,7 @@ static int apkenv_reloc_library(soinfo *si, Elf32_Rel *rel, unsigned count)
{
Dl_info info;
ElfW(Sym) *extra;
- if (dladdr1((void*)sym_addr, &info, (void**) &extra, RTLD_DL_SYMENT) && extra && ELF32_ST_TYPE(extra->st_info) == STT_FUNC)
+ if (dladdr1((void*)sym_addr, &info, (void**) &extra, RTLD_DL_SYMENT) && (!extra || ELF32_ST_TYPE(extra->st_info) == STT_FUNC))
sym_addr = (unsigned)wrapper_create(sym_name, (void*)sym_addr);
} else
if(s == NULL) {