Skip to content

Commit 0cae0f2

Browse files
authored
Merge pull request #500 from rust-osdev/fix/panic-linker-error
remove #[no_mangle] from panic handler
2 parents ce5da20 + 8bb91e5 commit 0cae0f2

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- name: "Install Rustup Components"
9797
run: rustup component add rust-src llvm-tools-preview
9898
- name: 'Build Example Kernel'
99-
run: cargo build -Zbuild-std=core
99+
run: cargo build -Zbuild-std=core -Zbuild-std-features=compiler-builtins-mem
100100
working-directory: example-kernel
101101

102102

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bootloader"
3-
version = "0.9.30"
3+
version = "0.9.31"
44
authors = ["Philipp Oppermann <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
description = "An experimental pure-Rust x86 bootloader."

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
# 0.9.31 – 2025-03-22
4+
5+
- [remove #[no_mangle] from panic handler](https://github.com/rust-osdev/bootloader/pull/500)
6+
37
# 0.9.30 – 2025-02-10
48

59
- [change rustc-abi in custom targets to x86-softfloat](https://github.com/rust-osdev/bootloader/pull/492)
File renamed without changes.

src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ fn enable_write_protect_bit() {
370370
}
371371

372372
#[panic_handler]
373-
#[no_mangle]
374373
pub fn panic(info: &PanicInfo) -> ! {
375374
use core::fmt::Write;
376375
write!(printer::Printer, "{}", info).unwrap();
File renamed without changes.

0 commit comments

Comments
 (0)