libdyld: all ELF relocations may refer to the current object.

This commit is contained in:
whitequark 2015-08-07 11:05:28 +03:00
parent 3cf46671e9
commit 1b34f48660
1 changed files with 1 additions and 2 deletions

View File

@ -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];