From 9f08cc8bd4dacb1eba052a06ac0a1e5bb8774064 Mon Sep 17 00:00:00 2001 From: Alexey Shmalko Date: Sat, 20 Feb 2016 02:47:26 +0200 Subject: [PATCH] Update to rustc 1.8.0-nightly (57c357d89 2016-02-16) - data-layout is no longer needed in target file. (Changed in previous commit.) See https://github.com/rust-lang/rust/issues/31367 - Symbols with custom section should be marked as no_mangle; otherwise, LTO will collect them. See https://github.com/rust-lang/rust/issues/31758 --- stm32f4/isr_vector.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stm32f4/isr_vector.rs b/stm32f4/isr_vector.rs index afdb9e1..5b6fa83 100644 --- a/stm32f4/isr_vector.rs +++ b/stm32f4/isr_vector.rs @@ -142,9 +142,11 @@ extern { pub fn __isr_fpu(); } +#[no_mangle] #[link_section = ".stack_end"] pub static STACK_END: &'static u32 = &__stack_end; +#[no_mangle] #[link_section = ".isr_vector"] pub static ISR_VECTOR: [Option; 97] = [ Some(__isr_reset), @@ -162,7 +164,7 @@ pub static ISR_VECTOR: [Option; 97] = [ None, Some(__isr_pendsv), Some(__isr_systick), - + Some(__isr_wwdg), Some(__isr_pvd), Some(__isr_tamp_stamp),