Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cae0f2

Browse files
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
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 <dev@phil-opp.com>"]
55
license = "MIT/Apache-2.0"
66
description = "An experimental pure-Rust x86 bootloader."

‎Changelog.md

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /