Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/symbol/elfutils: Fix handling of stripped Go binaries
Go binaries that are stripped, for example built with: ``` go build -ldflags "-w -s" main.go ``` Have an empty symbol table section, which some additional build steps may strip, since it's empty. Before this patch, those Go binaries would run into an error case when attempting to load the symbol table. Since the only truly necessary section for symbolization is the `.gopclntab` section, this patch proposes to only check for this section.
- Loading branch information