SummerCart64/fw/cpu/controller/prv32_rwx.ld

28 lines
603 B
Plaintext
Raw Normal View History

2021-08-12 21:07:47 +02:00
MEMORY
{
2021-08-18 13:54:07 +02:00
ram (rwx) : org = 0x00000000, len = 16k
2021-08-28 04:15:24 +02:00
bootloader (rx) : org = 0x10000000, len = 128
sdram (rwx) : org = 0x80000000, len = 64M
2021-08-12 21:07:47 +02:00
}
2021-08-18 13:54:07 +02:00
__ram_size = LENGTH(ram);
2021-08-28 04:15:24 +02:00
__stack_pointer = ORIGIN(ram) + LENGTH(ram) - 4;
2021-08-12 21:07:47 +02:00
2021-08-27 21:43:30 +02:00
ENTRY(main)
2021-08-12 21:07:47 +02:00
SECTIONS
{
2021-08-23 21:40:37 +02:00
.ram :
2021-08-12 21:07:47 +02:00
{
. = ALIGN(4);
2021-08-27 21:43:30 +02:00
*(.text.main);
2021-08-12 21:07:47 +02:00
. = ALIGN(4);
*(.text .text* .rodata .rodata* .srodata .srodata*);
. = ALIGN(4);
2021-08-28 04:15:24 +02:00
*(.data .data.* .sdata .sdata.*);
2021-08-12 21:07:47 +02:00
. = ALIGN(4);
2021-08-28 04:15:24 +02:00
*(.bss .bss.* .sbss .sbss.*);
2021-08-23 21:40:37 +02:00
. = ALIGN(4);
2021-08-18 13:54:07 +02:00
} > ram AT > ram
2021-08-12 21:07:47 +02:00
}