Skip to content

Commit e8014e2

Browse files
authored
Merge pull request #168 from rust-osdev/v0.9-hotfix
Fix nightly regression by manually passing `--gc-sections`
2 parents 0ac800f + 3ae79b8 commit e8014e2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: Changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- Fix nightly regression by manually passing --gc-sections ([#168](https://github.com/rust-osdev/bootloader/pull/168))
4+
35
# 0.9.17 – 2021-04-30
46

57
- Reduce the number of used unstable features of x86_64 crate (backport [#155](https://github.com/rust-osdev/bootloader/pull/140))

Diff for: x86_64-bootloader.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"linker": "rust-lld",
66
"pre-link-args": {
77
"ld.lld": [
8-
"--script=linker.ld"
9-
]
8+
"--script=linker.ld",
9+
"--gc-sections"
10+
]
1011
},
1112
"target-endian": "little",
1213
"target-pointer-width": "64",
@@ -17,5 +18,5 @@
1718
"disable-redzone": true,
1819
"panic": "abort",
1920
"executables": true,
20-
"relocation_model": "static"
21+
"relocation_model": "static"
2122
}

0 commit comments

Comments
 (0)