-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/link: OSX 10.11 go/cgo binary corrupted by codesign #12950
Comments
This is peculiar since it's the opposite of what I would expect. When you have the import "C" line there, the final program should be produced by the Darwin linker. I don't know why codesign would break a progrma produced by the Darwin linker. Please run the failing commands again, but use "go build -ldflags=-v". Thanks. |
|
This problem does not seem occur when code-signing with some simple Obj-C binaries produced by clang. I've tried one from Xcode and one from the command line. |
Looks like a duplicate of #11887. The issue is the DWARF information in the binary. A workaround is to use |
1: go version go1.5.1 darwin/amd64
2: OSX 10.11 MacPro6,1Quad-Core Intel Xeon E5
3: Minimal program to create an invalid go binary on OSX using codesign tool.
4: The program should run successfully after code signing. This used to work prior to OSX 10.11.
5: All of my OSX Go products depend on Cgo. Still looking for a workaround.
Possibly related to issue #12700
The text was updated successfully, but these errors were encountered: