Skip to content

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

Merged
phil-opp merged 4 commits into
v0.9-basefrom
v0.9-hotfix
May 20, 2021
Merged

Fix nightly regression by manually passing --gc-sections#168
phil-opp merged 4 commits into
v0.9-basefrom
v0.9-hotfix

Conversation

@phil-opp

@phil-oppphil-opp commented May 20, 2021

Copy link
Copy Markdown
Member

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-oppphil-opp changed the title Fix nightly regerssion by manually passing --gc-sectionsFix nightly regression by manually passing --gc-sectionsMay 20, 2021
Comment threadx86_64-bootloader.json Outdated
phil-oppand 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-baseMay 20, 2021
@phil-opp
phil-opp deleted the v0.9-hotfix branch May 20, 2021 12:12
@phil-opp

Copy link
Copy Markdown
MemberAuthor

Published as v0.9.18

Sign up for freeto 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.

2 participants

@phil-opp@bjorn3