ld: implement support for exposing ld functions to loaded executables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user