Package ghidra.app.util.bin.format.som
Class SomModuleEntry
java.lang.Object
ghidra.app.util.bin.format.som.SomModuleEntry
- All Implemented Interfaces:
StructConverter
Represents a SOM
module_entry structure- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the text address into the dynamic relocation table.intgetFlags()Returns the flags.intReturns the number of symbol entries in the module import table belonging to this module.intReturns the text address into the module import table.intReturns the number of modules the current module needs to have bound before all of its own import symbols can be found.intReturns the first reserved value.intReturns the second reserved value.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 aSomModuleEntry- See Also:
-
-
Constructor Details
-
SomModuleEntry
Creates a newSomModuleEntry- Parameters:
reader- ABinaryReaderpositioned at the start of the module list- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getDrelocs
public int getDrelocs()Returns the text address into the dynamic relocation table.- Returns:
- the text address into the dynamic relocation table
-
getImports
public int getImports()Returns the text address into the module import table.- Returns:
- the text address into the module import table
-
getImportCount
public int getImportCount()Returns the number of symbol entries in the module import table belonging to this module.- Returns:
- the number of symbol entries in the module import table belonging to this module
-
getFlags
public int getFlags()Returns the flags.- Returns:
- the flags
-
getReserved1
public int getReserved1()Returns the first reserved value.- Returns:
- the first reserved value
-
getModuleDependencies
public int getModuleDependencies()Returns the number of modules the current module needs to have bound before all of its own import symbols can be found.- Returns:
- the number of modules the current module needs to have bound before all of its own import symbols can be found
-
getReserved2
public int getReserved2()Returns the second reserved value.- Returns:
- the second reserved value
-
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:
-