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
Родитель ba120f9938
Коммит 963e3b362d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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