diff --git a/Changelog.md b/Changelog.md index c237631f..898000d2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,7 @@ # Unreleased +- Fix nightly regression by manually passing --gc-sections ([#168](https://github.com/rust-osdev/bootloader/pull/168)) + # 0.9.17 – 2021-04-30 - Reduce the number of used unstable features of x86_64 crate (backport [#155](https://github.com/rust-osdev/bootloader/pull/140)) diff --git a/x86_64-bootloader.json b/x86_64-bootloader.json index ad13109d..ab1c5256 100644 --- a/x86_64-bootloader.json +++ b/x86_64-bootloader.json @@ -5,8 +5,9 @@ "linker": "rust-lld", "pre-link-args": { "ld.lld": [ - "--script=linker.ld" - ] + "--script=linker.ld", + "--gc-sections" + ] }, "target-endian": "little", "target-pointer-width": "64", @@ -17,5 +18,5 @@ "disable-redzone": true, "panic": "abort", "executables": true, - "relocation_model": "static" + "relocation_model": "static" }