29 lines
538 B
Text
29 lines
538 B
Text
ENTRY(_start)
|
|
|
|
SECTIONS {
|
|
. = 0x80000000; /* Start address of the program */
|
|
|
|
.text : {
|
|
*(.text) /* Place all .text sections (code) here */
|
|
}
|
|
|
|
. = ALIGN(0x1000);
|
|
|
|
.data : {
|
|
*(.data) /* Place all .data sections (initialized data) here */
|
|
}
|
|
|
|
. = ALIGN(0x1000);
|
|
|
|
.bss : {
|
|
*(.bss) /* Place all .bss sections (uninitialized data) here */
|
|
}
|
|
|
|
. = ALIGN(0x1000);
|
|
|
|
.stack : {
|
|
*(.stack)
|
|
}
|
|
|
|
/DISCARD/ : { *(.note.GNU-stack) } /* Discard stack section */
|
|
}
|