Class NoteGnuBuildId
java.lang.Object
ghidra.app.util.bin.format.elf.info.ElfNote
ghidra.app.util.bin.format.elf.info.NoteGnuBuildId
- All Implemented Interfaces:
 ElfInfoItem
An ELF note that specifies the build-id (sha1/md5/etc hash or manually specified bytes that 
 can be hex-ified) of the containing program.
 
The hex values of the build-id are useful to find an external debug file.
- 
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
ConstructorsModifierConstructorDescriptionprotectedNoteGnuBuildId(int nameLen, String name, int vendorType, byte[] description)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic NoteGnuBuildIdfromProgram(Program program) Reads a NoteGnuBuildId from the standard ".note.gnu.build-id" section in the specified Program.Returns a string that describes this note's type, used when creating the defaultElfNote.getProgramInfoKey()value.static NoteGnuBuildIdDeserializes a NoteGnuBuildId 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, getNoteValueString, getProgramInfoKey, getVendorType, isGnu, markupProgram, read, readFromProgramHelper, toString 
- 
Field Details
- 
SECTION_NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
NoteGnuBuildId
 
 - 
 - 
Method Details
- 
read
Deserializes a NoteGnuBuildId from an already read generic Note.- Parameters:
 note- generic Noteprogram- context- Returns:
 - new NoteGnuBuildId instance, never null
 - Throws:
 IOException- if data error
 - 
fromProgram
Reads a NoteGnuBuildId from the standard ".note.gnu.build-id" section in the specified Program.- Parameters:
 program- Program to read from- Returns:
 - new instance, or null if not found or data error
 
 - 
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
 
 
 -