More fixes for x86

This commit is contained in:
Jeremy Soller
2022-08-20 20:56:42 -06:00
parent 8b629a562b
commit c96b3114ab
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
use core::arch::global_asm;
#[cfg(target_arch = "x86_64")]
#[cfg(target_arch = "x86")]
global_asm!(
r#"
.section .init
+11
View File
@@ -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