-
Notifications
You must be signed in to change notification settings - Fork 211
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
Showing
2 changed files
with
4 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters