Package ghidra.program.util
Class ExternalSymbolResolver
java.lang.Object
ghidra.program.util.ExternalSymbolResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfixUnresolvedExternalSymbols(List<Loaded<Program>> loadedPrograms, boolean fixAll, MessageLog messageLog, TaskMonitor monitor) Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "Required Library [").getLibrarySearchList(Program program) static StringgetRequiredLibraryProperty(int libraryIndex) Gets a program property name to represent the ordered required library of the given index
-
Constructor Details
-
ExternalSymbolResolver
public ExternalSymbolResolver()
-
-
Method Details
-
getRequiredLibraryProperty
Gets a program property name to represent the ordered required library of the given index- Parameters:
libraryIndex- The index of the required library- Returns:
- A program property name to represent the ordered required library of the given index
-
fixUnresolvedExternalSymbols
public static void fixUnresolvedExternalSymbols(List<Loaded<Program>> loadedPrograms, boolean fixAll, MessageLog messageLog, TaskMonitor monitor) throws CancelledException, IOException Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "Required Library [").The ordering and precedence logic is loader specific though no particular binary formats are parsed or required.
The program's external libraries need to already be populated with paths to already existing / imported libraries.
- Parameters:
loadedPrograms- TheLoadedPrograms to fix. The first entry is the "primary"LoadedProgram.fixAll- True if all of theLoadedPrograms should be fixed; false if just the "primary"LoadedProgramshould be fixed.messageLog-MessageLogto write info message to.monitor-TaskMonitorto watch for cancel and update with progress.- Throws:
CancelledException- if user cancelsIOException- if error reading
-
getLibrarySearchList
-