mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Some versions of libc do not define R_PPC_*, PowerPC relocation defines, so skip that section entirely.
Bug #119697
This commit is contained in:
parent
08c2912aac
commit
b710b79390
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user