build: debug_* sections are missing from toolchain binaries in Go 1.21 #61714
Labels
binary-size
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go 1.21rc4
Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?ppc64le, but same result on x86
go env
OutputWhat did you do?
I tried to use the GNU objdump -DlS on the go binary from a toolchain I built from the Go 1.21 branch, but the source statement information did not appear. On further inspection I found that the debug_* sections were missing from the go binary and all binaries found under pkg/tool/linux_ppc64le. When building a toolchain from the master branch all these binaries have the debug sections, and likewise on earlier releases such as the Go 1.20 branch.
What did you expect to see?
The debug_* sections in the Go 1.21 toolchain binaries such as go and those found in pkg/tool/linux_ppc64le so that debug tools will work when debugging the toolchain.
What did you see instead?
No debuginfo in the Go 1.21 toolchain binaries and debugging tools less effective.
If this was a planned change, I didn't see anything in the git log that explicitly mentions the removal of the debug_* sections and didn't find anything in the release notes that mentions the diffference.
The text was updated successfully, but these errors were encountered: