PackLinuxElf32ppc works (except lzma)

This commit is contained in:
John Reiser
2006-07-16 19:01:17 -07:00
parent b34e204676
commit e06a390771
11 changed files with 396 additions and 344 deletions
+2 -2
View File
@@ -842,7 +842,7 @@ void ElfLinkerPpc32::relocate1(Relocation *rel, upx_byte *location,
}
// FIXME: displacment overflow?
set_be32(location, (0xfc000003 & get_be32(location)) +
(0x03fffffc & (rel->add + value)));
(0x03fffffc & value));
}
else if (strcmp(type, "14") == 0) {
if (3& value) {
@@ -851,7 +851,7 @@ void ElfLinkerPpc32::relocate1(Relocation *rel, upx_byte *location,
}
// FIXME: displacment overflow?
set_be32(location, (0xffff0003 & get_be32(location)) +
(0x0000fffc & (rel->add + value)));
(0x0000fffc & value));
}
else
super::relocate1(rel, location, value, type);