cmd/link: external linking fails with -s on darwin #10254
Closed
Labels
Milestone
Comments
|
Even our misc/ccgo/test fails:
Alex |
The problem is that when -s is set, cmd/internal/ld will not generate the
COFF
symbol table, however, the symbol table is essential for external linking.
For now, please don't pass -ldflags -s if you're external linking, instead,
use
-ldflags "-extldflags -s".
|
It is Go linker crashing. It is bug that needs to be fixed. I don't have computer to confirm, but I suspect it is crashing because we ncoffsym++ in initdynimport. Why do we ncoffsym++ if we don't store symbols into coffsym. ncoffsym will get reset to 0 later on anyway in addpesymtable. I think our logic is flawed. Alex |
zrlk
added a commit
to kythe/kythe
that referenced
this issue
Jun 4, 2015
Summary: On OS X, asciidoc fails to find the executable of the Python interpreter, leading it to try and execute the empty string. We can fix this by overriding the autodetected interpreter with an attribute. The environment Bazel runs builds in does not include the path for graphviz on OS X. This CL adds logic to configure this in setup_bazel.sh. Finally, there's a Go issue on OS X that we're hitting. (golang/go#10254). Stop hitting it. Reviewers: shahms, fromberger, schroederc Reviewed By: schroederc Differential Revision: https://phabricator-dot-kythe-repo.appspot.com/D319
It sounds like if -s is given but we find ourselves in external linking mode, then we need to remember the -s for invoking the external linker and not treat cmd/link as having the -s anymore. |
CL https://golang.org/cl/10835 mentions this issue. |
alexbrainman
added a commit
that referenced
this issue
Jun 10, 2015
Update #10254 Change-Id: I3ddd26607813ca629e3ab62abf87dc5ab453e36f Reviewed-on: https://go-review.googlesource.com/10835 Reviewed-by: Ian Lance Taylor <iant@golang.org>
CL https://golang.org/cl/11695 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: