-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: clang linking broken at tip for a specific cgo usage #10015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
With -linkmode external:
|
With linkmode internal:
|
i can confirm that |
I'm not sure what are you trying to suggest. The mach_task_self_ is a simple environment variable which is prepared by mach_init, and your program doesn't use cgo stuff. Can you please elaborate on your issue? Are you trying to say that the current linker selection of cmd/cgo (see cmd/cgo/doc.go) has some issue? /cc @ianlancetaylor |
I don't know how much more black and white this issue can be: an existing piece of code that used to link fine under 1.4.* does not link at tip. the code is from a real world library which is being used currently: https://github.com/jondot/gosigar/blob/master/sigar_darwin.go#L129 with '-linkmode internal' the linking is successful in both the test case and the original program that exhibited the issue. the golang-dev comments preceding the creation of this issue are here: |
the latest linker has stopped linking successfully with the
external fails as before:
|
Dup of #9411, CL sent for that. |
What version of Go are you using (go version)?
What operating system and processor architecture are you using?
10.9.5 and 10.10.2
What did you do?
tried to compile the following program:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: