Package ghidra.app.util.bin.format.som
Class SomExportEntry
java.lang.Object
ghidra.app.util.bin.format.som.SomExportEntry
- All Implemented Interfaces:
StructConverter
Represents a SOM
export_entry structure- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSomExportEntry(BinaryReader reader, long stringTableLoc) Creates a newSomExportEntry -
Method Summary
Modifier and TypeMethodDescriptionintgetInfo()Returns the size of the storage request if exported symbol is of typeSTORAGE, or the version of the exported symbol along with argument relocation information.shortReturns the index into the module table of the module defining this symbol.getName()Returns the symbol name.intgetNext()Returns the next export record in the hash chain.intReturns the first reserved value.intgetType()Returns the symbol type.intgetValue()Returns the symbol address (subject to relocation).booleanReturns whether or not this is a TLS export.Returns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
SIZE
public static final int SIZEThe size in bytes of aSomExportEntry- See Also:
-
-
Constructor Details
-
SomExportEntry
Creates a newSomExportEntry- Parameters:
reader- ABinaryReaderpositioned at the start of the export liststringTableLoc- The location of the string table- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getNext
public int getNext()Returns the next export record in the hash chain.- Returns:
- the next export record in the hash chain
-
getName
Returns the symbol name.- Returns:
- the symbol name
-
getValue
public int getValue()Returns the symbol address (subject to relocation).- Returns:
- the symbol address (subject to relocation)
-
getInfo
public int getInfo()Returns the size of the storage request if exported symbol is of typeSTORAGE, or the version of the exported symbol along with argument relocation information.- Returns:
- the size of the storage request if exported symbol is of type
STORAGE, or the version of the exported symbol along with argument relocation information
-
getType
public int getType()Returns the symbol type.- Returns:
- the symbol type
- See Also:
-
isTpRelative
public boolean isTpRelative()Returns whether or not this is a TLS export.- Returns:
- whether or not this is a TLS export
-
getReserved1
public int getReserved1()Returns the first reserved value.- Returns:
- the first reserved value
-
getModuleIndex
public short getModuleIndex()Returns the index into the module table of the module defining this symbol.- Returns:
- the index into the module table of the module defining this symbol
-
toDataType
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-