Skip to content

Commit b823d76

Browse files
committed
Add --gc-sections linker argument again
It was previously added automatically by Rust. See #167 for more info.
1 parent 561eaf9 commit b823d76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/test_kernels/higher_half/x86_64-higher_half.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"disable-redzone": true,
1414
"features": "-mmx,-sse,+soft-float",
1515
"pre-link-args": {
16-
"ld.lld": ["--image-base", "0xFFFF800000000000"]
16+
"ld.lld": ["--image-base", "0xFFFF800000000000", "--gc-sections"]
1717
}
1818
}

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-strategy": "abort",
1920
"executables": true,
20-
"relocation_model": "static"
21+
"relocation_model": "static"
2122
}

0 commit comments

Comments
 (0)