Make relibc (except libm) pure Rust
This commit is contained in:
@@ -100,6 +100,14 @@ pub unsafe extern "C" fn abort() -> ! {
|
||||
intrinsics::abort();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
static __stack_chk_guard: uintptr_t = 0xd048c37519fcadfe;
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn __stack_chk_fail() -> ! {
|
||||
abort();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn abs(i: c_int) -> c_int {
|
||||
i.abs()
|
||||
|
||||
Reference in New Issue
Block a user