Skip to content

Commit

Permalink
Fix undefined reference to 'rust_begin_unwind' error
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaarelm committed Jan 28, 2017
1 parent 43e29f6 commit aed4b10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ pub fn putc(c: char) {
unsafe { *(UART0 as *mut u32) = c as u32 }
}

mod lang_items {
pub mod lang_items {
#[lang = "panic_fmt"]
extern "C" fn panic_fmt() {}
#[no_mangle]
pub extern "C" fn panic_fmt() {}
}

struct Uart;
Expand Down

0 comments on commit aed4b10

Please sign in to comment.