rve/example/linker.ld

20 lines
422 B
Text
Raw Normal View History

2024-12-06 22:40:52 +00:00
ENTRY(_start)
SECTIONS {
2024-12-06 23:50:21 +00:00
. = 0x0000; /* Start address of the program */
2024-12-06 22:40:52 +00:00
.text : {
*(.text) /* Place all .text sections (code) here */
}
.data : {
*(.data) /* Place all .data sections (initialized data) here */
}
.bss : {
*(.bss) /* Place all .bss sections (uninitialized data) here */
}
/DISCARD/ : { *(.note.GNU-stack) } /* Discard stack section */
}