More fixes for x86
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
use core::arch::global_asm;
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
#[cfg(target_arch = "x86")]
|
||||
global_asm!(
|
||||
r#"
|
||||
.section .init
|
||||
|
||||
@@ -12,6 +12,17 @@ _start:
|
||||
# TODO: aarch64
|
||||
");
|
||||
|
||||
#[cfg(target_arch = "x86")]
|
||||
global_asm!("
|
||||
.globl _start
|
||||
_start:
|
||||
push esp
|
||||
call relibc_ld_so_start
|
||||
pop esp
|
||||
# TODO: x86
|
||||
ud2
|
||||
");
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
global_asm!("
|
||||
.globl _start
|
||||
|
||||
Reference in New Issue
Block a user