Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/symbol/elfutils: Fix handling of stripped Go binaries #2066

Merged
merged 1 commit into from
Nov 9, 2022

Commits on Nov 9, 2022

  1. 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.
    brancz committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    1034538 View commit details
    Browse the repository at this point in the history