GP-0 change PowerPC R_PPC_COPY and R_PPC64_COPY ELF relocation failure

to a warning
This commit is contained in:
ghidra1
2021-02-03 10:35:25 -05:00
parent 2fd92e6f23
commit d91dd11fdc
2 changed files with 8 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ public class PowerPC64_ElfRelocationHandler extends ElfRelocationHandler {
}
switch (type) {
case PowerPC64_ElfRelocationConstants.R_PPC64_COPY:
markAsWarning(program, relocationAddress, "R_PPC64_COPY", sym.getNameAsString(),
symbolIndex, "Runtime copy not supported", elfRelocationContext.getLog());
break;
case PowerPC64_ElfRelocationConstants.R_PPC64_ADDR32:
newValue = (int) (symbolValue + addend);
memory.setInt(relocationAddress, newValue);

View File

@@ -82,6 +82,10 @@ public class PowerPC_ElfRelocationHandler extends ElfRelocationHandler {
int newValue = 0;
switch (type) {
case PowerPC_ElfRelocationConstants.R_PPC_COPY:
markAsWarning(program, relocationAddress, "R_PPC_COPY", sym.getNameAsString(),
symbolIndex, "Runtime copy not supported", elfRelocationContext.getLog());
break;
case PowerPC_ElfRelocationConstants.R_PPC_ADDR32:
case PowerPC_ElfRelocationConstants.R_PPC_UADDR32:
case PowerPC_ElfRelocationConstants.R_PPC_GLOB_DAT: