Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GP-4737_ghidra1_ElfArmHandleUnresolvedRelocSymbol' (Closes #6673)
ghidra11c7232d5a6dc
diff --cc Ghidra/Processors/eBPF/src/main/java/ghidra/app/util/bin/format/elf/relocation/eBPF_ElfRelocationHandler.javaindex 629820fcf4,a84945ee08..e00de8a462--- a/Ghidra/Processors/eBPF/src/main/java/ghidra/app/util/bin/format/elf/relocation/eBPF_ElfRelocationHandler.java+++ b/Ghidra/Processors/eBPF/src/main/java/ghidra/app/util/bin/format/elf/relocation/eBPF_ElfRelocationHandler.java@@@ -53,8 -53,15 +53,13 @@@ public class eBPF_ElfRelocationHandlereturn RelocationResult.SKIPPED;}- int symbolIndex = relocation.getSymbolIndex();-+ // Check for unresolved symbolAddr and symbolValue required by remaining relocation types handled below+ if (handleUnresolvedSymbol(elfRelocationContext, relocation, relocationAddress)) {+ return RelocationResult.FAILURE;+ }-- long new_value = 0;- int byteLength = 8;+++ long new_value;+ int byteLength;switch (type) {case R_BPF_64_64: {@@@ -66,8 -72,7 +71,8 @@@break;}case R_BPF_64_32: {+ byteLength = 8;-+// if we have, e.g, non-static function, it will be marked in the relocation table// and indexed in the symbol table and it's easy to calculate the pc-relative offsetlong instr_next = relocationAddress.add(0x8).getAddressableWordOffset();