cmd/link: vmsize of __DWARF should not be zero on darwin #21647
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
Re-enable plugin mode for darwin/amd64.
Then try the trivial example in https://golang.org/pkg/plugin/
What did you expect to see?
What did you see instead?
Does this issue reproduce with the latest release (go1.9)?
I'm going to skip DWARF generation now.
The text was updated successfully, but these errors were encountered:
Assorted fixups in the linker needed to enable turning back on DWARF generation when building plugins for Darwin. Includes: - don't suppress import of runtime/cgo in the linker for Darwin if we are linking in plugin mode - in calcCompUnitRanges handle the case where we encounter linker-generated functions that have no associated Unit (and also have no DWARF) - generalize a guard in relocsym() include so as to avoid triggering a spurious error on go.info symbols in plugin mode Updates #21647. Updates #27502. Change-Id: I317fea97bef2f3461e31498e63f9fd6d8b8f4b23 Reviewed-on: https://go-review.googlesource.com/c/go/+/182959 Run-TryBot: Than McIntosh <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Cherry Zhang <firstname.lastname@example.org> Reviewed-by: Emmanuel Odeke <email@example.com>