Package ghidra.app.util.bin.format.pef
Class ImportStateCache
java.lang.Object
ghidra.app.util.bin.format.pef.ImportStateCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createLibrarySymbol
(ImportedLibrary library, String symbolName, Address address) void
dispose()
getMemoryBlockForSection
(SectionHeader section) Returns the memory block for the given section.getNamespace
(ImportedLibrary library) Returns a namespace for the given imported library.getSymbol
(String symbolName, ImportedLibrary library) Returns the symbol object with the given name in the specified library.void
setMemoryBlockForSection
(SectionHeader section, MemoryBlock block) void
setTocAddress
(Address tocAddress)
-
Constructor Details
-
ImportStateCache
-
-
Method Details
-
dispose
public void dispose() -
getTVectNamespace
-
getNamespace
Returns a namespace for the given imported library.- Parameters:
library
- the imported library- Returns:
- a namespace for the given imported library
-
getMemoryBlockForSection
Returns the memory block for the given section. Generally sections do not specify a preferred address and are not named. This map provides a way to lookup the block that was created for the given section.- Parameters:
section
- the PEF section header- Returns:
- the memory block for the given section
-
setMemoryBlockForSection
-
getSymbol
Returns the symbol object with the given name in the specified library.- Parameters:
symbolName
- the desired symbol's namelibrary
- the desired library- Returns:
- the symbol object with the given name in the specified library
-
createLibrarySymbol
-
getTocAddress
-
setTocAddress
-