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

Link with ld instead of gcc #1300

Closed
brson opened this issue Dec 14, 2011 · 7 comments
Closed

Link with ld instead of gcc #1300

brson opened this issue Dec 14, 2011 · 7 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@brson
Copy link
Contributor

brson commented Dec 14, 2011

It seems silly to have this runtime dependency on gcc just for calling the linker. Calling ld will make #[link_args] and --link_args more accurate. Right now they would be better described as gcc_args.

@graydon
Copy link
Contributor

graydon commented Dec 14, 2011

Might want to ask rafael about this; the impression I got is that the amount of "how to invoke ld properly" brains embedded in gcc is so immense and platform-specific as to be prohibitive. Or at least very, very painful.

(IOW: "quantify a bit, before starting work on this"; I'm happy to be wrong)

@kud1ing
Copy link

kud1ing commented May 16, 2013

Would LLD be helpful? http://lld.llvm.org/

@bstrie
Copy link
Contributor

bstrie commented May 16, 2013

@kud1ing It would probably be incredibly helpful, but last I checked it was still very immature.

@kud1ing
Copy link

kud1ing commented May 16, 2013

Ah: "lld is in its early stages of development."

@thestinger
Copy link
Contributor

Does libclang expose a way to drive the linker? It seems like it would.

@emberian
Copy link
Member

I'm considering removing E-easy because figuring out all the details of each systems' linker isn't going to be that easy.

@thestinger
Copy link
Contributor

Closing in favour of #9367.

bjorn3 added a commit to bjorn3/rust that referenced this issue Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

No branches or pull requests

6 participants