ld: implement support for exposing ld functions to loaded executables

This commit is contained in:
2026-05-30 10:17:43 +01:00
parent ce52afe5b4
commit 08abe467ea
12 changed files with 425 additions and 59 deletions
+6 -3
View File
@@ -1,7 +1,7 @@
.code64
.global _start
.type _start, @function
.global _ld_start
.type _ld_start, @function
.extern main
.type main, @function
@@ -9,7 +9,10 @@
.extern task_exit
.type task_exit, @function
_start:
_ld_start:
nop
mov $0xFFFFFFFF, %rbp
call main
mov %rax, %rdi
call task_exit