Package ghidra.app.util.bin.format.som
Class SomExecAuxHeader
java.lang.Object
ghidra.app.util.bin.format.som.SomAuxHeader
ghidra.app.util.bin.format.som.SomExecAuxHeader
- All Implemented Interfaces:
StructConverter
Represents a SOM
som_exec_auxhdr structure- See Also:
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.som.SomAuxHeader
auxId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns BSS initialization value.longReturns the uninitialized data (BSS) size in bytes.longReturns the location of data in file.longReturns the offset of data in memory.longReturns the initialized data size in bytes.longReturns the offset of entrypoint.longReturns the loader flags.longReturns the location of text in file.longReturns the offset of text in memory.longReturns the text size in bytes.Returns a structure datatype representing the contents of the implementor of this interface.Methods inherited from class ghidra.app.util.bin.format.som.SomAuxHeader
getAuxId, getLength
-
Constructor Details
-
SomExecAuxHeader
Creates a newSomExecAuxHeader- Parameters:
reader- ABinaryReaderpositioned at the start of the auxiliary header- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getExecTextSize
public long getExecTextSize()Returns the text size in bytes.- Returns:
- the text size in bytes
-
getExecTextMem
public long getExecTextMem()Returns the offset of text in memory.- Returns:
- the offset of text in memory
-
getExecTextFile
public long getExecTextFile()Returns the location of text in file.- Returns:
- the location of text in file
-
getExecDataSize
public long getExecDataSize()Returns the initialized data size in bytes.- Returns:
- the initialized data size in bytes
-
getExecDataMem
public long getExecDataMem()Returns the offset of data in memory.- Returns:
- the offset of data in memory
-
getExecDataFile
public long getExecDataFile()Returns the location of data in file.- Returns:
- the location of data in file
-
getExecBssSize
public long getExecBssSize()Returns the uninitialized data (BSS) size in bytes.- Returns:
- the uninitialized data (BSS) size in bytes
-
getExecEntry
public long getExecEntry()Returns the offset of entrypoint.- Returns:
- the offset of entrypoint
-
getExecFlags
public long getExecFlags()Returns the loader flags.- Returns:
- the loader flags
-
getExecBssFill
public long getExecBssFill()Returns BSS initialization value.- Returns:
- BSS initialization 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- Specified by:
toDataTypein classSomAuxHeader- 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:
-