Make relibc (except libm) pure Rust

This commit is contained in:
4lDO2
2024-01-11 13:08:06 +00:00
committed by Jeremy Soller
parent 49ee2f0593
commit 5630b6e0df
30 changed files with 281 additions and 804 deletions
+8
View File
@@ -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()