cmd/link: OSX 10.11 go/cgo binary corrupted by codesign #12950
Closed
Labels
Milestone
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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: