20 lines
422 B
Text
20 lines
422 B
Text
|
ENTRY(_start)
|
||
|
|
||
|
SECTIONS {
|
||
|
. = 0x1000; /* Start address of the program */
|
||
|
|
||
|
.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 */
|
||
|
}
|