sys: add userspace bootstrap program

This commit is contained in:
2026-02-19 19:31:15 +00:00
parent efad96ce63
commit 75bd11d5cc
7 changed files with 288 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
ENTRY(_start)
SECTIONS {
.text ALIGN(4K) : {
*(.text)
*(.rodata)
}
.data ALIGN(4K) : {
*(.data)
*(.bss)
}
/DISCARD/ : {
*(.interp)
*(.dynamic)
}
}

View File

@@ -0,0 +1,15 @@
.code64
.global _start
.type _start, @function
.extern main
.type main, @function
.extern exit
.type exit, @function
_start:
call main
1: pause
jmp 1b