Skip to content

Commit

Permalink
Update to rustc 1.8.0-nightly (57c357d89 2016-02-16)
Browse files Browse the repository at this point in the history
- data-layout is no longer needed in target file. (Changed in previous
  commit.)
  See rust-lang/rust#31367

- Symbols with custom section should be marked as no_mangle; otherwise,
  LTO will collect them.
  See rust-lang/rust#31758
  • Loading branch information
rasendubi committed Feb 20, 2016
1 parent f788e32 commit 9f08cc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stm32f4/isr_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsafe extern fn()>; 97] = [
Some(__isr_reset),
Expand All @@ -162,7 +164,7 @@ pub static ISR_VECTOR: [Option<unsafe extern fn()>; 97] = [
None,
Some(__isr_pendsv),
Some(__isr_systick),

Some(__isr_wwdg),
Some(__isr_pvd),
Some(__isr_tamp_stamp),
Expand Down

0 comments on commit 9f08cc8

Please sign in to comment.