SummerCart64/sw/controller/app.ld

63 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-05-15 15:47:12 +02:00
MEMORY {
2022-08-03 08:53:30 +02:00
loader (rx) : org = 0x08000000, len = 4k
rom (rx) : org = 0x08001000, len = 28k
2022-05-15 15:47:12 +02:00
ram (rwx) : org = 0x20000000, len = 8k
}
ENTRY(Reset_Handler)
SECTIONS {
2022-08-03 08:53:30 +02:00
.loader : {
. = ALIGN(4);
KEEP(*(.loader))
. = ALIGN(4);
} > loader
2022-05-15 15:47:12 +02:00
.isr_vector : {
. = ALIGN(4);
KEEP(*(.isr_vector))
. = ALIGN(4);
} > rom
.text : {
. = ALIGN(4);
*(.text)
*(.text*)
*(.glue_7)
*(.glue_7t)
. = ALIGN(4);
_etext = .;
} > rom
2022-08-03 08:53:30 +02:00
.bss : {
2022-05-15 15:47:12 +02:00
. = ALIGN(4);
2022-08-03 08:53:30 +02:00
_sbss = .;
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)
2022-05-15 15:47:12 +02:00
. = ALIGN(4);
2022-08-03 08:53:30 +02:00
_ebss = .;
__bss_end__ = _ebss;
} > ram
2022-05-15 15:47:12 +02:00
.data : {
_sidata = LOADADDR(.data);
. = ALIGN(4);
_sdata = .;
*(.data)
*(.data*)
. = ALIGN(4);
_edata = .;
} > ram AT > rom
2022-08-03 08:53:30 +02:00
.rodata : {
2022-05-15 15:47:12 +02:00
. = ALIGN(4);
2022-08-03 08:53:30 +02:00
*(.rodata)
*(.rodata*)
. = ALIGN(8);
} > rom
2022-05-15 15:47:12 +02:00
_estack = ORIGIN(ram) + LENGTH(ram);
}