mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 05:58:00 -05: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;
|
||||
}
|
||||
|
||||
public Memory getMemory() {
|
||||
return memory;
|
||||
}
|
||||
|
||||
private Address getAddress(long index) throws IOException {
|
||||
if (index == 0) {
|
||||
return baseAddress;
|
||||
|
||||
@@ -573,7 +573,10 @@ public class DWARFProgram implements Closeable {
|
||||
}
|
||||
ByteProvider bp = br.getByteProvider();
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user