Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: Xcode 8.3 dsymutil rejects our binaries #19772
In src/runtime/testdata/testprogcgo, running the final parts of a link by hand:
The resulting binary is malformed.
This is the root cause of #19734, but we'll treat that issue as fixed by the workaround of not trusting dsymutil's exit status when it prints "warnings" (for backport to Go 1.8).
This issue is to fix our object files to be compatible with dsymutil, for Go 1.9.
referenced this issue
Mar 29, 2017
Also please notice apple's and llvm's dsymutil is different binaries.
Apple dsymutil default output is:
llvml dsymutil default output is:
I don't know how Apple use llvm in Xcode. But I can compile go binaries with cgo on mac os 10.12.3 using llvm's dsymutil before 9a41e59, and can't compile with llvm's dsymutil after this change.