Documentation
¶
Overview ¶
Package binary provides binary file manipulation utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBuildID ¶
ReadBuildID reads the ELF build-id from the given binary. Returns an empty string if the binary has no build-id.
func SeparateDebugInfo ¶
SeparateDebugInfo extracts debug information from the binary into a separate file organized by build-id, then adds a .gnu_debuglink to the original binary. The debug file is stored at <debugDir>/.build-id/<prefix>/<suffix>.debug. Returns the path to the debug file, or empty string if no build-id was found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.