Package ghidra.app.util.bin.format.som
Class SomPltEntry
java.lang.Object
ghidra.app.util.bin.format.som.SomPltEntry
- All Implemented Interfaces:
StructConverter
Represents a SOM
PLT_entry structure- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the import index of the code symbol (ifproc_addrpoints to the BOR routine.intReturns the address of the procedure to be branched to.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 aSomPltEntry- See Also:
-
-
Constructor Details
-
SomPltEntry
Creates a newSomPltEntry- Parameters:
reader- ABinaryReaderpositioned at the start of the PLT- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getProcAddr
public int getProcAddr()Returns the address of the procedure to be branched to.- Returns:
- the address of the procedure to be branched to
-
getLtptrValue
public int getLtptrValue()Returns the import index of the code symbol (ifproc_addrpoints to the BOR routine.- Returns:
- the import index of the code symbol (if
proc_addrpoints to the BOR routine
-
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:
-