user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
.section .text
|
||||
.global _start
|
||||
_start:
|
||||
mov x0, sp
|
||||
adr x1, main
|
||||
|
||||
bl __mlibc_entry
|
||||
brk #0
|
||||
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.section .text
|
||||
.global _start
|
||||
_start:
|
||||
mov x0, sp
|
||||
adrp x1, main
|
||||
add x1, x1, :lo12:main
|
||||
bl __mlibc_entry
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
.section .init
|
||||
.global _init
|
||||
_init:
|
||||
stp x29, x30, [sp, -16]!
|
||||
mov x29, sp
|
||||
|
||||
.section .fini
|
||||
.global _fini
|
||||
_fini:
|
||||
stp x29, x30, [sp, -16]!
|
||||
mov x29, sp
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
.section .init
|
||||
ldp x29, x30, [sp], #16
|
||||
ret
|
||||
|
||||
.section .fini
|
||||
ldp x29, x30, [sp], #16
|
||||
ret
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
Reference in New Issue
Block a user