GP-651 add support for ELF relocation R_X86_64_IRELATIVE

This commit is contained in:
ghidra1
2021-02-01 10:49:49 -05:00
parent d6612902d8
commit bb665bda63

View File

@@ -207,11 +207,8 @@ public class X86_64_ElfRelocationHandler extends ElfRelocationHandler {
memory.setLong(relocationAddress, value);
break;
case X86_64_ElfRelocationConstants.R_X86_64_IRELATIVE:
// NOTE: We don't support this since the code actually uses a function to
// compute the relocation value (i.e., indirect)
appliedSymbol = false;
markAsError(program, relocationAddress, "R_X86_64_IRELATIVE", symbolName,
"indirect computed relocation not supported", elfRelocationContext.getLog());
value = addend + elfRelocationContext.getImageBaseWordAdjustmentOffset();
memory.setLong(relocationAddress, value);
break;
// case ElfRelocationConstants.R_X86_64_TLSGD: