rust...
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#[no_mangle] #[naked]
|
#[no_mangle] #[naked]
|
||||||
pub unsafe extern "C" fn __chkstk() {
|
pub unsafe extern "C" fn __chkstk() {
|
||||||
core::arch::asm!(
|
core::arch::naked_asm!(
|
||||||
"push %rcx",
|
"push %rcx",
|
||||||
"push %rax",
|
"push %rax",
|
||||||
"cmp $0x1000,%rax",
|
"cmp $0x1000,%rax",
|
||||||
@@ -18,6 +18,6 @@ pub unsafe extern "C" fn __chkstk() {
|
|||||||
"pop %rax",
|
"pop %rax",
|
||||||
"pop %rcx",
|
"pop %rcx",
|
||||||
"ret",
|
"ret",
|
||||||
options(noreturn, att_syntax)
|
options(att_syntax)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user