2024-12-06 22:40:52 +00:00
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS {
|
2024-12-15 16:44:39 +00:00
|
|
|
. = 0x80000000; /* Start address of the program */
|
2024-12-06 22:40:52 +00:00
|
|
|
|
|
|
|
.text : {
|
|
|
|
*(.text) /* Place all .text sections (code) here */
|
|
|
|
}
|
|
|
|
|
2024-12-15 16:44:39 +00:00
|
|
|
. = ALIGN(0x1000);
|
2024-12-07 01:19:22 +00:00
|
|
|
|
2024-12-06 22:40:52 +00:00
|
|
|
.data : {
|
|
|
|
*(.data) /* Place all .data sections (initialized data) here */
|
|
|
|
}
|
|
|
|
|
2024-12-15 16:44:39 +00:00
|
|
|
. = ALIGN(0x1000);
|
2024-12-07 01:19:22 +00:00
|
|
|
|
2024-12-06 22:40:52 +00:00
|
|
|
.bss : {
|
|
|
|
*(.bss) /* Place all .bss sections (uninitialized data) here */
|
|
|
|
}
|
|
|
|
|
2024-12-15 16:44:39 +00:00
|
|
|
. = ALIGN(0x1000);
|
2024-12-07 01:19:22 +00:00
|
|
|
|
|
|
|
.stack : {
|
|
|
|
*(.stack)
|
|
|
|
}
|
|
|
|
|
2024-12-06 22:40:52 +00:00
|
|
|
/DISCARD/ : { *(.note.GNU-stack) } /* Discard stack section */
|
|
|
|
}
|