Some versions of libc do not define R_PPC_*, PowerPC relocation defines, so skip that section entirely.

Bug #119697
This commit is contained in:
seawood%netscape.com 2002-01-16 06:18:54 +00:00
parent 08c2912aac
commit b710b79390

View File

@ -814,6 +814,8 @@ remap_rela_section(Elf32_Rela *rela, Elf32_Word size, Elf32_Word entry_size)
fixup_addr(read_word(rela->r_offset)));
break;
case EM_PPC:
/* Some systems do not have PowerPC relocations defined */
#ifdef R_PPC_NONE
switch (type) {
case R_PPC_RELATIVE:
write_word((Elf32_Word *)&rela->r_addend,
@ -830,7 +832,7 @@ remap_rela_section(Elf32_Rela *rela, Elf32_Word size, Elf32_Word entry_size)
default:
fprintf(stderr, "Warning, unhandled PPC relocation type %d\n", type);
}
#endif
break;
}