new format UPX_F_VMLINUX_PPC32 Linux kernel for PowerPC (32-bit)

This commit is contained in:
John Reiser
2007-04-30 13:34:06 -07:00
parent 530e6d9196
commit f347458c53
14 changed files with 1058 additions and 9 deletions
+6
View File
@@ -801,6 +801,12 @@ void ElfLinkerPpc32::relocate1(const Relocation *rel, upx_byte *location,
return super::relocate1(rel, location, value, type);
type += 6;
if (strcmp(type, "ADDR32") == 0)
{
set_be32(location, get_be32(location) + value);
return;
}
if (strncmp(type, "REL", 3) == 0)
{
value -= rel->section->offset + rel->offset;