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) void
markupProgram
(Program program, Address address) Markup a program's info and memory with this item.static PEGoBuildId
read
(BinaryReader br, Program program_notused) Attempts to read a PEGoBuildId from the specified stream.static PEGoBuildId
read
(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
-InputStream
providing access to the ".text" section of a PE binary- Returns:
- PEGoBuildId instance, or null if not present
-
getBuildId
-
markupProgram
Description copied from interface:ElfInfoItem
Markup a program's info and memory with this item.- Specified by:
markupProgram
in interfaceElfInfoItem
- Parameters:
program
-Program
to markupaddress
-Address
of the item in the program
-