Class ImportStateCache

java.lang.Object
ghidra.app.util.bin.format.pef.ImportStateCache

public class ImportStateCache extends Object
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
    • getTVectNamespace

      public Namespace getTVectNamespace()
    • getNamespace

      public Namespace getNamespace(ImportedLibrary library)
      Returns a namespace for the given imported library.
      Parameters:
      library - the imported library
      Returns:
      a namespace for the given imported library
    • getMemoryBlockForSection

      public MemoryBlock getMemoryBlockForSection(SectionHeader section)
      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

      public void setMemoryBlockForSection(SectionHeader section, MemoryBlock block)
    • getSymbol

      public Symbol getSymbol(String symbolName, ImportedLibrary library)
      Returns the symbol object with the given name in the specified library.
      Parameters:
      symbolName - the desired symbol's name
      library - the desired library
      Returns:
      the symbol object with the given name in the specified library
    • createLibrarySymbol

      public boolean createLibrarySymbol(ImportedLibrary library, String symbolName, Address address)
    • getTocAddress

      public Address getTocAddress()
    • setTocAddress

      public void setTocAddress(Address tocAddress)