feat(app): nolibc hello world
This commit is contained in:
38
app/nolibc.ld
Normal file
38
app/nolibc.ld
Normal 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*)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user