From 1b34f4866036b16dc3c662ea6eca265d2c295828 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 7 Aug 2015 11:05:28 +0300 Subject: [PATCH] libdyld: all ELF relocations may refer to the current object. --- software/libdyld/dyld.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/software/libdyld/dyld.c b/software/libdyld/dyld.c index 06512d14..269bca3a 100644 --- a/software/libdyld/dyld.c +++ b/software/libdyld/dyld.c @@ -22,12 +22,11 @@ static int fixup_rela(struct dyld_info *info, Elf32_Rela *rela, case R_OR1K_32: case R_OR1K_GLOB_DAT: + case R_OR1K_JMP_SLOT: value = (Elf32_Addr)dyld_lookup(&info->strtab[sym->st_name], info); if(value != 0) break; - //fallthrough - case R_OR1K_JMP_SLOT: value = resolve_import(&info->strtab[sym->st_name]); if(value == 0) { static char error[256]; -- 2.30.2