mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 03:45:04 +08:00
Merge remote-tracking branch 'origin/GP-0_dev747368_more_fixes_dwarf_external_program_addresses' into Ghidra_12.0
This commit is contained in:
@@ -159,6 +159,10 @@ public class MemoryByteProvider implements ByteProvider {
|
|||||||
this.isEmtpy = maxAddress == null;
|
this.isEmtpy = maxAddress == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Memory getMemory() {
|
||||||
|
return memory;
|
||||||
|
}
|
||||||
|
|
||||||
private Address getAddress(long index) throws IOException {
|
private Address getAddress(long index) throws IOException {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return baseAddress;
|
return baseAddress;
|
||||||
|
|||||||
+4
-1
@@ -573,7 +573,10 @@ public class DWARFProgram implements Closeable {
|
|||||||
}
|
}
|
||||||
ByteProvider bp = br.getByteProvider();
|
ByteProvider bp = br.getByteProvider();
|
||||||
if (bp instanceof MemoryByteProvider mbp && !mbp.isEmpty()) {
|
if (bp instanceof MemoryByteProvider mbp && !mbp.isEmpty()) {
|
||||||
if (program.getRelocationTable().getRelocations(mbp.getAddressSet()).hasNext()) {
|
Program providerProgram = mbp.getMemory().getProgram();
|
||||||
|
if (providerProgram.getRelocationTable()
|
||||||
|
.getRelocations(mbp.getAddressSet())
|
||||||
|
.hasNext()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user