mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Remove old cruft.
This commit is contained in:
parent
32de5d0d7f
commit
0d57d2cfe3
|
@ -649,11 +649,7 @@ void ElfLinkerAMD64::relocate1(const Relocation *rel, upx_byte *location,
|
|||
|
||||
if (strcmp(type, "8") == 0)
|
||||
{
|
||||
#if (ACC_CC_PGI)
|
||||
int displ = * (signed char *) location + (int) value; // CBUG
|
||||
#else
|
||||
int displ = (signed char) *location + (int) value;
|
||||
#endif
|
||||
if (range_check && (displ < -128 || displ > 127))
|
||||
internal_error("target out of range (%d) in reloc %s:%x\n",
|
||||
displ, rel->section->name, rel->offset);
|
||||
|
@ -912,11 +908,7 @@ void ElfLinkerPpc64le::relocate1(const Relocation *rel, upx_byte *location,
|
|||
|
||||
if (strcmp(type, "8") == 0)
|
||||
{
|
||||
#if (ACC_CC_PGI)
|
||||
int displ = * (signed char *) location + (int) value; // CBUG
|
||||
#else
|
||||
int displ = (signed char) *location + (int) value;
|
||||
#endif
|
||||
if (range_check && (displ < -128 || displ > 127))
|
||||
internal_error("target out of range (%d) in reloc %s:%x\n",
|
||||
displ, rel->section->name, rel->offset);
|
||||
|
@ -954,11 +946,7 @@ void ElfLinkerX86::relocate1(const Relocation *rel, upx_byte *location,
|
|||
|
||||
if (strcmp(type, "8") == 0)
|
||||
{
|
||||
#if (ACC_CC_PGI)
|
||||
int displ = * (signed char *) location + (int) value; // CBUG
|
||||
#else
|
||||
int displ = (signed char) *location + (int) value;
|
||||
#endif
|
||||
if (range_check && (displ < -128 || displ > 127))
|
||||
internal_error("target out of range (%d,%d,%d) in reloc %s:%x\n",
|
||||
displ, *location, value, rel->section->name, rel->offset);
|
||||
|
|
Loading…
Reference in New Issue
Block a user