mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0 change PowerPC R_PPC_COPY and R_PPC64_COPY ELF relocation failure
to a warning
This commit is contained in:
@@ -103,6 +103,10 @@ public class PowerPC64_ElfRelocationHandler extends ElfRelocationHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (type) {
|
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:
|
case PowerPC64_ElfRelocationConstants.R_PPC64_ADDR32:
|
||||||
newValue = (int) (symbolValue + addend);
|
newValue = (int) (symbolValue + addend);
|
||||||
memory.setInt(relocationAddress, newValue);
|
memory.setInt(relocationAddress, newValue);
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ public class PowerPC_ElfRelocationHandler extends ElfRelocationHandler {
|
|||||||
int newValue = 0;
|
int newValue = 0;
|
||||||
|
|
||||||
switch (type) {
|
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_ADDR32:
|
||||||
case PowerPC_ElfRelocationConstants.R_PPC_UADDR32:
|
case PowerPC_ElfRelocationConstants.R_PPC_UADDR32:
|
||||||
case PowerPC_ElfRelocationConstants.R_PPC_GLOB_DAT:
|
case PowerPC_ElfRelocationConstants.R_PPC_GLOB_DAT:
|
||||||
|
|||||||
Reference in New Issue
Block a user