cmd/link: bad debug_info on macOS 10.12.1 when using cgo (but only under very specific circumstances) #17897
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
I can't figure out a simpler way to reproduce this:
(gobjdump is GNU objdump)
What did you expect to see?
The same output from both
gobjdump | grep
.What did you see instead?
When I compile cgotest.go while I'm in the same directory cgotest.go is I get:
When I compile cgotest.go by specifying
../_fixtures/cgotest.go
I get:Note how the
DW_AT_type
attribute ofgoid
is gone. The output of -x is identical in both cases.The text was updated successfully, but these errors were encountered: