-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathResolveAndFixupExternal.java
39 lines (30 loc) · 1.02 KB
/
ResolveAndFixupExternal.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
//@author Florian Magin
//@category
//@keybinding
//@menupath
//@toolbar
import java.util.ArrayList;
import java.util.List;
import ghidra.app.script.GhidraScript;
import ghidra.app.util.opinion.ElfLoader;
import ghidra.program.model.listing.Library;
import ghidra.program.model.listing.Program;
import ghidra.program.model.symbol.ExternalManager;
import ghidra.util.Msg;
public class ResolveAndFixupExternal extends GhidraScript {
@Override
protected void run() throws Exception {
if (!ElfLoader.ELF_NAME.equals(currentProgram.getExecutableFormat())) {
Msg.showError(this, null, "ResolveAndFixupExternal",
"Current program is not an ELF program! (" + currentProgram.getExecutableFormat() + ")");
return;
}
Msg.showInfo(this, null, "ResolveAndFixupExternal", getLibsWithoutExternalPath(currentProgram));
}
public List<Library> getLibsWithoutExternalPath(Program program){
List<Library> result = new ArrayList<>();
ExternalManager externalManager = program.getExternalManager();
return null;
}
}