Package ghidra.program.util
Class ELFExternalSymbolResolver
- java.lang.Object
-
- ghidra.program.util.ELFExternalSymbolResolver
-
public class ELFExternalSymbolResolver extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ELFExternalSymbolResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
fixUnresolvedExternalSymbols(Program program, boolean saveIfModified, MessageLog messageLog, TaskMonitor monitor)
Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "ELF Required Library [nn]").
-
-
-
Method Detail
-
fixUnresolvedExternalSymbols
public static void fixUnresolvedExternalSymbols(Program program, boolean saveIfModified, MessageLog messageLog, TaskMonitor monitor) throws CancelledException, java.io.IOException
Links unresolved symbols to the first symbol found in the (ordered) linked libraries (saved in the program's properties as "ELF Required Library [nn]").The ordering and precedence logic is ELF specific though no ELF binary formats are parsed or required.
The program's external libraries need to already be populated with paths to already existing / imported libraries.
- Parameters:
program
- ELFProgram
to fix.saveIfModified
- boolean flag, if true the program will be saved if there was a modification.messageLog
-MessageLog
to write info message to.monitor
-TaskMonitor
to watch for cancel and update with progress.- Throws:
CancelledException
- if user cancelsjava.io.IOException
- if error reading
-
-