Class GoBuildId
java.lang.Object
ghidra.app.util.bin.format.golang.GoBuildId
This class represents a go build id string, along with a magic header.
Similar to NoteGoBuildId
, but re-implemented here because of the different
serialization used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElfInfoItem.ItemWithAddress
<GoBuildId> findBuildId
(Program program) void
markupProgram
(Program program, Address address) static GoBuildId
read
(BinaryReader br, Program program_notused) Attempts to read a GoBuildId from the specified stream.static GoBuildId
read
(InputStream is) Attempts to read a GoBuildId from the specified InputStream (useful for early compiler detection before file is loaded).
-
Constructor Details
-
GoBuildId
-
-
Method Details
-
findBuildId
-
read
Attempts to read a GoBuildId 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:
- GoBuildId instance, or null if not present
-
read
Attempts to read a GoBuildId 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:
- GoBuildId instance, or null if not present
-
getBuildId
-
markupProgram
-