Package ghidra.app.util.bin.format.som
Class SomDynamicRelocation
java.lang.Object
ghidra.app.util.bin.format.som.SomDynamicRelocation
- All Implemented Interfaces:
StructConverter
Represents a SOM
dreloc_record structure- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSomDynamicRelocation(BinaryReader reader) Creates a newSomDynamicRelocation -
Method Summary
Modifier and TypeMethodDescriptionintReturns the data-relative offset of the data item the dreloc record refers to.shortReturns the module index (currently reserved).byteReturns the reserved value.intgetShlib()Returns the shared library name (currently a reserved field).intReturns the index into the import table if the relocation is an external type.intgetType()Returns the type of dynamic relocation.intgetValue()Returns the text or data-relative offset to use for a patch if it is an internal fixup type.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 aSomDynamicRelocation- See Also:
-
-
Constructor Details
-
SomDynamicRelocation
Creates a newSomDynamicRelocation- Parameters:
reader- ABinaryReaderpositioned at the start of the dynamic relocation list- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getShlib
public int getShlib()Returns the shared library name (currently a reserved field).- Returns:
- the shared library name (currently a reserved field)
-
getSymbol
public int getSymbol()Returns the index into the import table if the relocation is an external type.- Returns:
- the index into the import table if the relocation is an external type
-
getLocation
public int getLocation()Returns the data-relative offset of the data item the dreloc record refers to.- Returns:
- the data-relative offset of the data item the dreloc record refers to
-
getValue
public int getValue()Returns the text or data-relative offset to use for a patch if it is an internal fixup type.- Returns:
- the text or data-relative offset to use for a patch if it is an internal fixup type
-
getType
public int getType()Returns the type of dynamic relocation.- Returns:
- the type of dynamic relocation
- See Also:
-
getReserved
public byte getReserved()Returns the reserved value.- Returns:
- the reserved value
-
getModuleIndex
public short getModuleIndex()Returns the module index (currently reserved).- Returns:
- the module index (currently reserved)
-
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:
-