Skip to content
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/cgo, cmd/ld: support weak imports on OS X #3141

Closed
mkrautz opened this issue Feb 27, 2012 · 5 comments

Comments

@mkrautz
Copy link
Contributor

commented Feb 27, 2012

Weak imports are currently not treated correctly. Most likely, ld does not have the
knowledge to handle weak imports, and simply ignores them.

Weak imports are important for cross-version API compatibility on OS X, allowing you to
check for the availability of APIs at runtime, without embedding a hard dependency on
that symbol into the binary.

See https://golang.org/issue/3131 for a example of where this is an
issue.
@dsymonds

This comment has been minimized.

Copy link
Member

commented Feb 28, 2012

Comment 1:

Over to rsc to prioritise.

Labels changed: added priority-go1, cgo, removed priority-triage.

Owner changed to @rsc.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2012

Comment 2:

This can be fixed after Go 1.  We got package tls working.

Status changed to Priority-Later.

@minux

This comment has been minimized.

Copy link
Member

commented Feb 28, 2012

Comment 3:

Labels changed: added priority-later, removed priority-go1.

Status changed to Accepted.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Sep 12, 2012

Comment 5:

Labels changed: added go1.1maybe.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Mar 11, 2013

Comment 6:

This will be supported by making gcc do the final link. That's issue #4069.

Status changed to Duplicate.

Merged into issue #4069.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015

@rsc rsc removed the go1.1maybe label Apr 14, 2015

@golang golang locked and limited conversation to collaborators Jun 24, 2016

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants
You can’t perform that action at this time.