Skip to content

Change Default Linker to Gold for x86 #19875

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

Merged
merged 1 commit into from
Oct 24, 2018
Merged

Change Default Linker to Gold for x86 #19875

merged 1 commit into from
Oct 24, 2018

Conversation

Kaiede
Copy link
Contributor

@Kaiede Kaiede commented Oct 14, 2018

For the same reasons that most platforms rely on the gold linker to be the default, x86/i686 needs it to be the default to avoid issues when using swift/swiftc to build/link modules.

For the same reasons that ARM 32-bit Linux needs gold, we should be using the same linker by default for x86/i686.
@compnerd
Copy link
Member

This is totally reasonable. I am left wondering how much it makes sense to have this though. Why not just give up on BFD and default to gold always unless the user requests lld?

@compnerd
Copy link
Member

I think that it might make sense to have a test for the default linker.

@compnerd
Copy link
Member

@swift-ci please test

@Kaiede
Copy link
Contributor Author

Kaiede commented Oct 15, 2018

This is totally reasonable. I am left wondering how much it makes sense to have this though. Why not just give up on BFD and default to gold always unless the user requests lld?

That's a fair question. Seems like perhaps it should be the way to go, especially in the face of work around ABI stabilization that really seems to be dependent on things that BFD doesn't currently support or handle well.

@compnerd
Copy link
Member

compnerd commented Oct 15, 2018

I think that we could/should do that as a follow up. Although, I think that it is reasonable to add a driver test to ensure that gold is used by default.

@futurejones
Copy link
Contributor

This is totally reasonable. I am left wondering how much it makes sense to have this though. Why not just give up on BFD and default to gold always unless the user requests lld?

But at this point in time it is not the case, so we need to approve this PR and others like it without any delays.

@gottesmm
Copy link
Contributor

I agree with compnerd here. As a follow up commit we should add a test to make sure that we do not use BFD here.

@compnerd
Copy link
Member

@gottesmm - I'll go ahead and merge to get people unblocked. I was holding off hoping that they would have a test case with the change itself.

@compnerd compnerd merged commit f85d8ae into swiftlang:master Oct 24, 2018
@futurejones
Copy link
Contributor

@compnerd Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants