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

Fix nightly regression by manually passing --gc-sections #168

Merged
merged 4 commits into from
May 20, 2021

Conversation

phil-opp
Copy link
Member

@phil-opp phil-opp commented May 20, 2021

Rust used to pass --gc-section automatically. In rust-lang/rust#85274, this behavior was changed to only pass that flag for targets that use a GNU linker. So we have to add it manually, otherwise the bootloader grows too large to be loaded by our assembly stage.

Fixes #167

This is a hotfix for the v0.9.17 release and does not apply to the main branch (which needs some additional fixes).

Rust used to pass `--gc-section` automatically. In rust-lang/rust#85274, this behavior was changed to only pass that flag for targets that use a GNU linker. So we have to add it manually, otherwise the bootloader grows too large to be loaded by our assembly stage.
phil-opp added a commit that referenced this pull request May 20, 2021
@phil-opp phil-opp changed the title Fix nightly regerssion by manually passing --gc-sections Fix nightly regression by manually passing --gc-sections May 20, 2021
x86_64-bootloader.json Outdated Show resolved Hide resolved
phil-opp and others added 2 commits May 20, 2021 13:59
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
@phil-opp phil-opp merged commit e8014e2 into v0.9-base May 20, 2021
@phil-opp phil-opp deleted the v0.9-hotfix branch May 20, 2021 12:12
@phil-opp
Copy link
Member Author

Published as v0.9.18

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.

None yet

2 participants