Package ghidra.app.util.bin.format.xcoff
Class XCoffOptionalHeader
java.lang.Object
ghidra.app.util.bin.format.xcoff.XCoffOptionalHeader
- All Implemented Interfaces:
- StructConverter
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionbyteReturns the CPU bit flags.byteReserved.longReturns the virtual address of the .data section.longThis field should be 0.longgetEntry()Returns the virtual address of the entry point.bytegetFlags()This field consists of 4 1-bit flags and a 4-bit .tdata alignment.longReturns the size (in bytes) of the raw data for the .data section.shortgetMagic()Returns the magic value.shortReturns log (base-2) of the maximum alignment needed for any csect in the .data or .bss section.shortReturns log (base-2) of the maximum alignment needed for any csect in the .text section.longReturns the maximum data size allowed for this executable.longReturns the maximum stack size allowed for this executable.Returns the module type.shortReturns the number of the .bss section.shortReturns the number of the .data section.shortReturns the number of the section that contains the entry point.shortReturns the number of the section that contains the system loader information.shortshortshortReturns the number of the .text section.shortReturns the number of the section that contains the TOC.longReturns the size (in bytes) of the raw data for the .text section.longReturns the virtual address of the .text section.longgetTOC()Returns the virtual address of the TOC anchor.longReturns the size (in bytes) of the .bss section.shortReturns the format version for this auxiliary header.Returns a structure datatype representing the contents of the implementor of this interface.toString()
- 
Field Details- 
AOUTHDRSZpublic static final int AOUTHDRSZ- See Also:
 
 
- 
- 
Method Details- 
toString
- 
getMagicpublic short getMagic()Returns the magic value. The binder assigns the following value: 0x010b.- Returns:
- the magic value
 
- 
getVersionStamppublic short getVersionStamp()Returns the format version for this auxiliary header. The only valid value is 1.- Returns:
- the format version for this auxiliary header
 
- 
getTextSizepublic long getTextSize()Returns the size (in bytes) of the raw data for the .text section.- Returns:
- the size (in bytes) of the raw data for the .text section
 
- 
getInitializedDataSizepublic long getInitializedDataSize()Returns the size (in bytes) of the raw data for the .data section.- Returns:
- the size (in bytes) of the raw data for the .data section
 
- 
getUninitializedDataSizepublic long getUninitializedDataSize()Returns the size (in bytes) of the .bss section. No raw data exists in the file for the .bss section.- Returns:
- the size (in bytes) of the .bss section
 
- 
getEntrypublic long getEntry()Returns the virtual address of the entry point.- Returns:
- the virtual address of the entry point
 
- 
getTextStartpublic long getTextStart()Returns the virtual address of the .text section.- Returns:
- the virtual address of the .text section
 
- 
getDataStartpublic long getDataStart()Returns the virtual address of the .data section.- Returns:
- the virtual address of the .data section
 
- 
getTOCpublic long getTOC()Returns the virtual address of the TOC anchor.- Returns:
- the virtual address of the TOC anchor
 
- 
getSectionNumberForEntrypublic short getSectionNumberForEntry()Returns the number of the section that contains the entry point. The entry point must be in the .text or .data section.- Returns:
- the number of the section that contains the entry point
 
- 
getSectionNumberForTextpublic short getSectionNumberForText()Returns the number of the .text section.- Returns:
- the number of the .text section
 
- 
getSectionNumberForDatapublic short getSectionNumberForData()Returns the number of the .data section.- Returns:
- the number of the .data section
 
- 
getSectionNumberForTOCpublic short getSectionNumberForTOC()Returns the number of the section that contains the TOC.- Returns:
- the number of the section that contains the TOC
 
- 
getSectionNumberForLoaderpublic short getSectionNumberForLoader()Returns the number of the section that contains the system loader information.- Returns:
- the number of the section that contains the system loader information
 
- 
getSectionNumberForBsspublic short getSectionNumberForBss()Returns the number of the .bss section.- Returns:
- the number of the .bss section
 
- 
getMaxAlignmentForTextpublic short getMaxAlignmentForText()Returns log (base-2) of the maximum alignment needed for any csect in the .text section.- Returns:
- the maximum alignment for the .text section
 
- 
getMaxAlignmentForDatapublic short getMaxAlignmentForData()Returns log (base-2) of the maximum alignment needed for any csect in the .data or .bss section.- Returns:
- the maximum alignment for the .data or .bss section
 
- 
getModuleTypeReturns the module type. Valid module types: RO - Specifies a read-only module.- Returns:
- the module type
 
- 
getCpuFlagpublic byte getCpuFlag()Returns the CPU bit flags.- Returns:
- the CPU bit flags
 
- 
getCpuTypepublic byte getCpuType()Reserved. Always returns 0.- Returns:
- always returns 0
 
- 
getMaxStackSizepublic long getMaxStackSize()Returns the maximum stack size allowed for this executable. If the value is 0, then the default value is used.- Returns:
- the maximum stack size allow for this executable
 
- 
getMaxDataSizepublic long getMaxDataSize()Returns the maximum data size allowed for this executable. If the value is 0, then the default value is used.- Returns:
- the maximum data size allow for this executable
 
- 
getDebuggerpublic long getDebugger()This field should be 0. When the loaded program is being debugged, the memory image of this field may be modified by the debugger to insert a trap instruction.- Returns:
- should return 0
 
- 
getFlagspublic byte getFlags()This field consists of 4 1-bit flags and a 4-bit .tdata alignment.- Returns:
- the flags
 
- 
getSectionNumberForTDatapublic short getSectionNumberForTData()
- 
getSectionNumberForTBsspublic short getSectionNumberForTBss()
- 
toDataTypeDescription 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 interface- StructConverter
- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
- DuplicateNameException- when a datatype of the same name already exists
- IOException- if an IO-related error occurs
- See Also:
 
 
-