-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/ld: Objective-C dynamic relocation link failure with internal linker on Mac OS X 10.6 with Xcode 4.2 #8009
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
Labels
Milestone
Comments
As another example, consider $ cat b.go package main; import "fmt" // #cgo LDFLAGS: -framework Foundation // extern void *cgoptr(void); import "C" func main() { fmt.Printf("pointer from cgo: %p\n", C.cgoptr()) } $ cat b.m #include <Foundation/NSObject.h> void *cgoptr(void) { return [NSObject new]; } which yields main(__DATA/__objc_classrefs): unexpected reloc for dynamic symbol OBJC_CLASS_$_NSObject main(__DATA/__objc_classrefs): unhandled relocation for OBJC_CLASS_$_NSObject (type 32 rtype 1) I also forgot to say that things work fine with -linkmode external, as with issue #5699. |
This was referenced Apr 10, 2015
Per #9511, we will not be making any further bug fixes specific to 10.6. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: