Set the address to the external functions/locations to null to fix the "Go to External Location" features for imports

This commit is contained in:
Maschell 2019-10-11 13:35:18 +02:00
parent 9d4a4fdcfb
commit 9930b34783

View File

@ -89,10 +89,10 @@ public class Cafe_ElfExtension extends ElfExtension {
elfLoadHelper.createSymbol(address, name, true, elfSymbol.isAbsolute(), null); elfLoadHelper.createSymbol(address, name, true, elfSymbol.isAbsolute(), null);
if (elfSymbol.isFunction()) { if (elfSymbol.isFunction()) {
program.getExternalManager().addExtFunction(rplName, name, address, program.getExternalManager().addExtFunction(rplName, name, null,
SourceType.IMPORTED); SourceType.IMPORTED);
} else if (elfSymbol.isObject()) { } else if (elfSymbol.isObject()) {
program.getExternalManager().addExtLocation(rplName, name, address, program.getExternalManager().addExtLocation(rplName, name, null,
SourceType.IMPORTED); SourceType.IMPORTED);
} }