Fix remaining issues, move setjmp into relibc crate, move start logic into relibc

This commit is contained in:
Jeremy Soller
2018-08-26 12:28:27 -06:00
parent c63c930e4a
commit ed00ddfb54
37 changed files with 8 additions and 7 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
use alloc::Vec;
use core::ptr;
use header::stdio;
use platform;
use platform::{Pal, Sys};
use platform::types::*;
#[repr(C)]
@@ -25,7 +28,7 @@ impl Stack {
#[inline(never)]
#[no_mangle]
pub unsafe extern "C" fn _start_rust(sp: &'static Stack) -> ! {
pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
extern "C" {
fn main(argc: isize, argv: *const *const c_char, envp: *const *const c_char) -> c_int;
}