Class NoteAbiTag
java.lang.Object
ghidra.app.util.bin.format.elf.info.ElfNote
ghidra.app.util.bin.format.elf.info.NoteAbiTag
- All Implemented Interfaces:
ElfInfoItem
An ELF note that specifies the minimum kernel ABI required by this binary
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.app.util.bin.format.elf.info.ElfNote
ElfNote.NoteReaderFunc<T extends ElfNote>Nested classes/interfaces inherited from interface ghidra.app.util.bin.format.elf.info.ElfInfoItem
ElfInfoItem.ItemWithAddress<T>, ElfInfoItem.ReaderFunc<T> -
Field Summary
FieldsFields inherited from class ghidra.app.util.bin.format.elf.info.ElfNote
description, name, nameLen, vendorType -
Constructor Summary
ConstructorsConstructorDescriptionNoteAbiTag(int nameLen, String name, int vendorType, int abiType, int[] requiredKernelVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic NoteAbiTagfromProgram(Program program) Reads a NoteAbiTag from the standard ".note.ABI-tag" section in the specified Program.intReturns a string that describes this note's type, used when creating the defaultElfNote.getProgramInfoKey()value.Returns a string representation of this note's 'value', used when creating the PROGRAM_INFO entry.static NoteAbiTagDeserializes a NoteAbiTag from an already read generic Note.Returns a Structure datatype that matches the format of this ElfNote, or null if this ElfNote shouldn't be represented/marked up.Methods inherited from class ghidra.app.util.bin.format.elf.info.ElfNote
createNoteStructure, decorateProgramInfo, getDescription, getDescriptionAsHexString, getDescriptionLen, getDescriptionReader, getName, getNameLen, getProgramInfoKey, getVendorType, isGnu, markupProgram, read, readFromProgramHelper, toString
-
Field Details
-
SECTION_NAME
- See Also:
-
-
Constructor Details
-
NoteAbiTag
public NoteAbiTag(int nameLen, String name, int vendorType, int abiType, int[] requiredKernelVersion)
-
-
Method Details
-
read
Deserializes a NoteAbiTag from an already read generic Note.- Parameters:
note- generic Noteprogram- context- Returns:
- new NoteAbiTag instance, never null
- Throws:
IOException- if data error
-
fromProgram
Reads a NoteAbiTag from the standard ".note.ABI-tag" section in the specified Program.- Parameters:
program- Program to read from- Returns:
- new instance, or null if not found or data error
-
getAbiType
public int getAbiType() -
getAbiTypeString
-
getRequiredKernelVersion
-
getNoteValueString
Description copied from class:ElfNoteReturns a string representation of this note's 'value', used when creating the PROGRAM_INFO entry.Specific Note subclasses should override this to return a better string than this default implementation.
- Overrides:
getNoteValueStringin classElfNote- Returns:
- string describing this note's value
-
getNoteTypeName
Description copied from class:ElfNoteReturns a string that describes this note's type, used when creating the defaultElfNote.getProgramInfoKey()value.Specific Note subclasses can override this to return a better string than this default implementation, or can override the
ElfNote.getProgramInfoKey()method.- Overrides:
getNoteTypeNamein classElfNote- Returns:
- descriptive string
-
toStructure
Description copied from class:ElfNoteReturns a Structure datatype that matches the format of this ElfNote, or null if this ElfNote shouldn't be represented/marked up.- Overrides:
toStructurein classElfNote- Parameters:
dtm-DataTypeManagerthat will receive the structure- Returns:
- StructureDataType that specifies the layout of the ElfNote, or null
-