Package ghidra.app.util.bin.format.pef
Class ExportedSymbol
java.lang.Object
ghidra.app.util.bin.format.pef.ExportedSymbol
- All Implemented Interfaces:
StructConverter
See Apple's -- PEFBinaryFormat.h
struct PEFExportedSymbol { //! This structure is 10 bytes long and arrays are packed.
UInt32 classAndName; //A combination of class and name offset.
UInt32 symbolValue; //Typically the symbol's offset within a section.
SInt16 sectionIndex; //The index of the section, or pseudo-section, for the symbol.
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe symbol value is an absolute address.static final intstatic final intThe symbol value is the index of a reexported import.static final intWeak symbol mask -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the symbol's name.intReturns offset of symbol name in loader string table.shortReturns the index of the section, or pseudo-section, for the symbol.Returns the symbol's class.intTypically the symbol's offset within a section.Returns a structure datatype representing the contents of the implementor of this interface.toString()
-
Field Details
-
kPEFExpSymClassShift
public static final int kPEFExpSymClassShift- See Also:
-
kPEFAbsoluteExport
public static final int kPEFAbsoluteExportThe symbol value is an absolute address.- See Also:
-
kPEFReexportedImport
public static final int kPEFReexportedImportThe symbol value is the index of a reexported import.- See Also:
-
kPEFWeakImportSymMask
public static final int kPEFWeakImportSymMaskWeak symbol mask- See Also:
-
-
Method Details
-
getName
Returns the symbol's name.- Returns:
- the symbol's name
-
getSymbolClass
Returns the symbol's class.- Returns:
- the symbol's class
-
getNameOffset
public int getNameOffset()Returns offset of symbol name in loader string table.- Returns:
- offset of symbol name in loader string table
-
getSymbolValue
public int getSymbolValue()Typically the symbol's offset within a section.- Returns:
- the symbol's offset within a section
-
getSectionIndex
public short getSectionIndex()Returns the index of the section, or pseudo-section, for the symbol.- Returns:
- the index of the section, or pseudo-section, for the symbol
-
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.
- 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:
-
toString
-