2020-07-06 21:16:32 +08:00
|
|
|
ENTRY(Reset);
|
2020-04-11 20:19:39 +08:00
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2020-04-28 19:46:33 +08:00
|
|
|
/* 256 kB On-Chip Memory */
|
|
|
|
OCM : ORIGIN = 0, LENGTH = 0x30000
|
2020-09-01 09:39:21 +08:00
|
|
|
SDRAM : ORIGIN = 0x00100000, LENGTH = 0x1FF00000
|
2020-04-28 19:46:33 +08:00
|
|
|
OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000
|
2020-04-11 20:19:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
KEEP(*(.text.exceptions));
|
|
|
|
*(.text.boot);
|
|
|
|
*(.text .text.*);
|
|
|
|
} > OCM
|
|
|
|
|
|
|
|
.rodata : ALIGN(4)
|
|
|
|
{
|
|
|
|
*(.rodata .rodata.*);
|
|
|
|
} > OCM
|
|
|
|
|
|
|
|
.data : ALIGN(4)
|
|
|
|
{
|
|
|
|
*(.data .data.*);
|
|
|
|
} > OCM
|
2020-09-01 09:39:21 +08:00
|
|
|
|
|
|
|
.heap (NOLOAD) : ALIGN(8)
|
|
|
|
{
|
|
|
|
__runtime_start = .;
|
|
|
|
. += 0x8000000;
|
|
|
|
__runtime_end = .;
|
|
|
|
__heap0_start = .;
|
|
|
|
. += 0x8000000;
|
|
|
|
__heap0_end = .;
|
|
|
|
} > SDRAM
|
2020-04-11 20:19:39 +08:00
|
|
|
|
2020-04-28 19:46:33 +08:00
|
|
|
.bss (NOLOAD) : ALIGN(4)
|
2020-04-11 20:19:39 +08:00
|
|
|
{
|
2020-04-28 19:46:33 +08:00
|
|
|
__bss_start = .;
|
2020-04-11 20:19:39 +08:00
|
|
|
*(.bss .bss.*);
|
|
|
|
. = ALIGN(4);
|
2020-04-28 19:46:33 +08:00
|
|
|
__bss_end = .;
|
2020-06-18 17:28:34 +08:00
|
|
|
} > OCM3
|
2020-04-28 19:46:33 +08:00
|
|
|
|
|
|
|
.stack1 (NOLOAD) : ALIGN(8)
|
|
|
|
{
|
|
|
|
__stack1_end = .;
|
2020-08-24 16:09:00 +08:00
|
|
|
. += 0x100;
|
2020-04-28 19:46:33 +08:00
|
|
|
__stack1_start = .;
|
2020-06-18 17:28:34 +08:00
|
|
|
} > OCM3
|
2020-04-11 20:19:39 +08:00
|
|
|
|
2020-04-28 19:46:33 +08:00
|
|
|
.stack0 (NOLOAD) : ALIGN(8)
|
|
|
|
{
|
|
|
|
__stack0_end = .;
|
|
|
|
. += 0x4000;
|
|
|
|
__stack0_start = .;
|
2020-06-18 17:28:34 +08:00
|
|
|
} > OCM3
|
2020-04-11 20:19:39 +08:00
|
|
|
|
2020-04-28 19:46:33 +08:00
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
/* Unused exception related info that only wastes space */
|
|
|
|
*(.ARM.exidx);
|
|
|
|
*(.ARM.exidx.*);
|
|
|
|
*(.ARM.extab.*);
|
|
|
|
}
|
2020-04-11 20:19:39 +08:00
|
|
|
}
|