mirror of
https://github.com/cemu-project/GhidraRPXLoader.git
synced 2024-11-22 09:19:17 +01:00
Add support for data imports.
This commit is contained in:
parent
f1b7a8f517
commit
4603bdb986
@ -79,13 +79,16 @@ public class Cafe_ElfExtension extends ElfExtension {
|
||||
}
|
||||
|
||||
try {
|
||||
Program program = elfLoadHelper.getProgram();
|
||||
elfLoadHelper.setElfSymbolAddress(elfSymbol, address);
|
||||
elfLoadHelper.createSymbol(address, name, true, elfSymbol.isAbsolute(), null);
|
||||
|
||||
if (elfSymbol.isFunction()) {
|
||||
Program program = elfLoadHelper.getProgram();
|
||||
program.getExternalManager().addExtFunction(rplName, name, address,
|
||||
SourceType.IMPORTED);
|
||||
} else if (elfSymbol.isObject()) {
|
||||
program.getExternalManager().addExtLocation(rplName, name, address,
|
||||
SourceType.IMPORTED);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user