aboutsummaryrefslogtreecommitdiff
path: root/asm/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'asm/lib.rs')
-rw-r--r--asm/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/asm/lib.rs b/asm/lib.rs
index ec46d5b..b57642e 100644
--- a/asm/lib.rs
+++ b/asm/lib.rs
@@ -126,6 +126,7 @@ shims! {
/// handler gets linked in, this causes a linker error. We always build this file with optimizations
/// enabled, but even without them the panic handler should never be linked in.
#[panic_handler]
+#[link_section = ".text.asm_panic_handler"]
fn panic(_: &core::panic::PanicInfo) -> ! {
extern "C" {
#[link_name = "cortex-m internal error: panic handler not optimized out, please file an \