feat(app): nolibc hello world

This commit is contained in:
2026-04-20 16:00:17 +02:00
parent d829209488
commit d5be4cfe0b
5 changed files with 103 additions and 1 deletions

38
app/nolibc.ld Normal file
View File

@@ -0,0 +1,38 @@
ENTRY(_start)
PHDRS
{
text PT_LOAD FLAGS(5); /* R + X */
data PT_LOAD FLAGS(6); /* R + W */
}
SECTIONS
{
. = 0x400000;
.text : ALIGN(16) {
*(.text .text.*)
}:text
.rodata : {
*(.rodata .rodata.*)
}:text
.data : {
*(.data .data.*)
}:data
.bss : {
*(.bss .bss.*)
*(COMMON)
}:data
/DISCARD/ : {
*(.note*)
*(.comment*)
*(.eh_frame*)
*(.symtab*)
*(.strtab*)
}
}