Class PEGoBuildId
java.lang.Object
ghidra.app.util.bin.format.golang.PEGoBuildId
- All Implemented Interfaces:
ElfInfoItem
Similar to
NoteGoBuildId, but re-implemented here because of the different
serialization used in PE binaries. (the logic about the buildid payload is trivial so
there is no worry about duplicating code)
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.app.util.bin.format.elf.info.ElfInfoItem
ElfInfoItem.ItemWithAddress<T>, ElfInfoItem.ReaderFunc<T extends ElfInfoItem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBuildId(Program program) voidmarkupProgram(Program program, Address address) Markup a program's info and memory with this item.static PEGoBuildIdread(BinaryReader br, Program program_notused) Attempts to read a PEGoBuildId from the specified stream.static PEGoBuildIdread(InputStream is) Attempts to read a PEGoBuildId from the specified InputStream (useful for early compiler detection before file is loaded).
-
Constructor Details
-
PEGoBuildId
-
-
Method Details
-
findBuildId
-
read
Attempts to read a PEGoBuildId from the specified stream.- Parameters:
br- BinaryReader stream (typically the beginning of the ".text" section)program_notused- not used, but needed to match functional interface- Returns:
- PEGoBuildId instance, or null if not present
-
read
Attempts to read a PEGoBuildId from the specified InputStream (useful for early compiler detection before file is loaded).- Parameters:
is-InputStreamproviding access to the ".text" section of a PE binary- Returns:
- PEGoBuildId instance, or null if not present
-
getBuildId
-
markupProgram
Description copied from interface:ElfInfoItemMarkup a program's info and memory with this item.- Specified by:
markupProgramin interfaceElfInfoItem- Parameters:
program-Programto markupaddress-Addressof the item in the program
-