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

cmd/objdump: -S doesn't work with dynamically linked executable #50269

Closed
MoZhonghua opened this issue Dec 20, 2021 · 2 comments
Closed

cmd/objdump: -S doesn't work with dynamically linked executable #50269

MoZhonghua opened this issue Dec 20, 2021 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@MoZhonghua
Copy link

go tool objudmp -S can't print source code when the executable is built with go build -buildmode=pie. pclntab data is not in elf section .gopclntab, but in .data.rel.ro.gopclntab. .gosymtab has similar problem.

MoZhonghua pushed a commit to MoZhonghua/go that referenced this issue Dec 20, 2021
`go tool objudmp -S` can't print source code when the executable is
built with `go build -buildmode=pie`. pclntab data is not in elf section
`.gopclntab`, but in `.data.rel.ro.gopclntab`. `.gosymtab` has similar
problem.

This fixes issue golang#50269.
@gopherbot
Copy link

Change https://golang.org/cl/373337 mentions this issue: cmd/objdump: fix -S with dynamically-linked executable

@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 20, 2021
@cherrymui
Copy link
Member

Dup of #17883 . Thanks.

CL https://go-review.googlesource.com/c/go/+/227483 was my attempt but it doesn't work everywhere and still have problems.

@golang golang locked and limited conversation to collaborators Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants