build: Use rustc to link the binaries instead of gcc.
[gps-watch.git] / src / bootloader / main.rs
index a5fe9832d30a7cf6d18ed9ca3e130e5477818163..815429ed1410645a15910edbc56eaac5a719bd11 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #![no_std]
-#![crate_type="staticlib"]
+#![no_main]
 #[link(name="libcommon.rlib")]
 
 extern crate common;
@@ -44,7 +44,7 @@ extern {
     fn enable_interrupts();
     fn disable_interrupts();
 
-    fn jump_to_application(address: u32);
+    fn jump_to_application(address: u32) -> !;
 }
 
 #[cfg(bootloader_type = "intermediate")]
@@ -84,7 +84,7 @@ fn bootloader_requested() -> bool {
 }
 
 #[no_mangle]
-pub unsafe extern fn main() {
+pub unsafe extern "C" fn _start() -> ! {
     watchdog::disable();
     clock::configure();
     systick::init();