cmd/link: select DWARF 4 when using external linker #22455
Closed
Labels
Comments
Change https://golang.org/cl/73672 mentions this issue: |
For the record, we started passing |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When a user requests external linkage, the Go linker seems to be invoking the external linker with the "-gdwarf-2" flag (asking for DWARF version 2). Example:
Given that the DWARF produced by the Go compiler is now DWARF 4, I don't think it makes sense to continue to use this flag. When I look at the dwarf from the himom.go build above, it appears that all compilation units in the .debug_info are showing version 4 except for this one:
Not sure what the original thinking was for doing this, but it doesn't seem useful now.
The text was updated successfully, but these errors were encountered: