Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chips/qemu_arm_mps2/src/vectors_m3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ use cortexm3::{CortexM3, CortexMVariant, initialize_ram_jump_to_main, unhandled_
extern "C" {
// _estack is not really a function, but it makes the types work.
// You should never actually invoke it!!
//
// Keep this in the chip crate: `process_console` declares `_estack` as
// data, and LTO can't hold both types in one unit -- it renames ours to
// `_estack.1` and the link then fails, blaming an unrelated line.
fn _estack();
}

Expand Down
4 changes: 4 additions & 0 deletions chips/qemu_arm_mps2/src/vectors_m4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ use cortexm4::{CortexM4, CortexMVariant, initialize_ram_jump_to_main, unhandled_
extern "C" {
// _estack is not really a function, but it makes the types work.
// You should never actually invoke it!!
//
// Keep this in the chip crate: `process_console` declares `_estack` as
// data, and LTO can't hold both types in one unit -- it renames ours to
// `_estack.1` and the link then fails, blaming an unrelated line.
fn _estack();
}

Expand Down