build: Use rustc to link the binaries instead of gcc.
[gps-watch.git] / src / bootloader / main.rs
index 321166c55a55f9bde891b5ec32db1ae804d3f8ce..815429ed1410645a15910edbc56eaac5a719bd11 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #![no_std]
-#![crate_type="staticlib"]
+#![no_main]
 #[link(name="libcommon.rlib")]
 
 extern crate common;
@@ -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();