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

Work around lld 13+ issue with --gc-sections for ELF by adding -z nostart-stop-gc #1153

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

finagolfin
Copy link
Member

This is a Swift version of swiftlang/swift#60544, which will fix swiftlang/swift#60406. I ran the testsuite on linux x86_64 with this pull without a problem.

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@compnerd
Copy link
Member

@swift-ci please test

@keith keith merged commit c771555 into swiftlang:main Aug 19, 2022
@keith
Copy link
Member

keith commented Aug 19, 2022

Merging this one since we also merged the other one

finagolfin added a commit to finagolfin/swift-package-manager that referenced this pull request Aug 19, 2022
It should work with lld now that the lld flag '-z nostart-stop-gc' was added with
swiftlang/swift#60544 and swiftlang/swift-driver#1153.
@finagolfin finagolfin deleted the lld-gc branch August 19, 2022 20:22
neonichu pushed a commit to swiftlang/swift-package-manager that referenced this pull request Aug 19, 2022
It should work with lld now that the lld flag '-z nostart-stop-gc' was added with
swiftlang/swift#60544 and swiftlang/swift-driver#1153.
@DougGregor
Copy link
Member

@buttaface This seems to have broken Android CI: https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/1767/consoleFull. Seems like we need to get that CI updated or put in the versioning check here.

@finagolfin
Copy link
Member Author

finagolfin commented Sep 12, 2022

@DougGregor, already submitted a pull for the Android CI, swiftlang/swift#60938, just waiting on @drodriguez to update to the latest Android NDK 25b on there.

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.

lld 13+ stopped working with the linker flag --gc-sections and Swift on ELF platforms
5 participants