Class NoteGoBuildId
java.lang.Object
ghidra.app.util.bin.format.elf.info.ElfNote
ghidra.app.util.bin.format.golang.NoteGoBuildId
- All Implemented Interfaces:
ElfInfoItem
An ELF note that specifies the golang build-id.
-
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
Fields inherited from class ghidra.app.util.bin.format.elf.info.ElfNote
description, name, nameLen, vendorType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the go buildid valueReturns 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.Returns a string that is used to build a PROGRAM_INFO entry's key.static NoteGoBuildId
read
(BinaryReader br, Program unusedProgram) Reads a NoteGoBuildId from the specified BinaryReader, matching the signature of ElfInfoItem.ReaderFunc.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, getVendorType, isGnu, markupProgram, read, readFromProgramHelper, toString
-
Field Details
-
SECTION_NAME
- See Also:
-
PROGRAM_INFO_KEY
- See Also:
-
-
Constructor Details
-
NoteGoBuildId
-
-
Method Details
-
read
Reads a NoteGoBuildId from the specified BinaryReader, matching the signature of ElfInfoItem.ReaderFunc.- Parameters:
br
- BinaryReaderunusedProgram
- context (unused but needed to match signature)- Returns:
- new NoteGoBuildId instance, never null
- Throws:
IOException
- if data error
-
getBuildId
Returns the go buildid value- Returns:
- go buildid value
-
getNoteTypeName
Description copied from class:ElfNote
Returns 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:
getNoteTypeName
in classElfNote
- Returns:
- descriptive string
-
getProgramInfoKey
Description copied from class:ElfNote
Returns a string that is used to build a PROGRAM_INFO entry's key.Specific Note subclasses can override this to return a better key string.
- Overrides:
getProgramInfoKey
in classElfNote
- Returns:
- key string (avoid using '.' characters as they will be converted to '_'s)
-
getNoteValueString
Description copied from class:ElfNote
Returns 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:
getNoteValueString
in classElfNote
- Returns:
- string describing this note's value
-
toStructure
Description copied from class:ElfNote
Returns a Structure datatype that matches the format of this ElfNote, or null if this ElfNote shouldn't be represented/marked up.- Overrides:
toStructure
in classElfNote
- Parameters:
dtm
-DataTypeManager
that will receive the structure- Returns:
- StructureDataType that specifies the layout of the ElfNote, or null
-