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

Re-enable gc-sections with lld for NativeAOT #84935

Merged
merged 3 commits into from Apr 17, 2023
Merged

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Apr 17, 2023

This adds back @am11's fix from #84493 (which I temporarily reverted in #84148), plus the patch suggested in #84493 (comment) to enable use of lld < 13. This should allow us to continue building runtime with lld 12, while supporting the gc-sections optimization when a newer lld is available.

@am11
Copy link
Member

am11 commented Apr 17, 2023

LGTM, thanks!

Looks like dwarf dump count has increased:

  Found 12729 warnings and errors
  Found 12729 warnings and errors, expected between 9500 and 10500

It is linker-dependent and yields different results for different linker optimizations. We can just adjust the values in tests.

@sbomer sbomer merged commit 410aa0a into dotnet:main Apr 17, 2023
119 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators May 18, 2023
@sbomer sbomer deleted the lldVersionFix branch November 3, 2023 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants