cmd/link: vmsize of __DWARF should not be zero on darwin #21647
Closed
Labels
Milestone
Comments
Change https://golang.org/cl/59372 mentions this issue: |
Change https://golang.org/cl/182959 mentions this issue: |
Change https://golang.org/cl/206198 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Nov 11, 2019
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 <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Re-enable plugin mode for darwin/amd64.
Then try the trivial example in https://golang.org/pkg/plugin/
What did you expect to see?
success.
What did you see instead?
Does this issue reproduce with the latest release (go1.9)?
System details
I'm going to skip DWARF generation now.
The text was updated successfully, but these errors were encountered: