Skip to content

Commit

Permalink
libdyld: all ELF relocations may refer to the current object.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 7, 2015
1 parent 3cf4667 commit 1b34f48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions software/libdyld/dyld.c
Expand Up @@ -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];
Expand Down

0 comments on commit 1b34f48

Please sign in to comment.