2019-05-05 20:56:23 +08:00
|
|
|
ENTRY(_boot_cores);
|
|
|
|
|
2019-08-19 08:19:48 +08:00
|
|
|
STACK_SIZE = 0x8000;
|
2019-05-31 06:17:53 +08:00
|
|
|
|
|
|
|
/* Provide some defaults */
|
2019-05-31 02:30:19 +08:00
|
|
|
PROVIDE(Reset = _boot_cores);
|
|
|
|
PROVIDE(UndefinedInstruction = Reset);
|
|
|
|
PROVIDE(SoftwareInterrupt = Reset);
|
|
|
|
PROVIDE(PrefetchAbort = Reset);
|
|
|
|
PROVIDE(DataAbort = Reset);
|
|
|
|
PROVIDE(ReservedException = Reset);
|
|
|
|
PROVIDE(IRQ = Reset);
|
|
|
|
PROVIDE(FIQ = Reset);
|
2019-05-05 20:56:23 +08:00
|
|
|
|
2019-05-27 07:44:24 +08:00
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
/* 256 kB On-Chip Memory */
|
2019-08-19 08:19:48 +08:00
|
|
|
OCM : ORIGIN = 0, LENGTH = 0x30000
|
|
|
|
OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000
|
2019-05-27 07:44:24 +08:00
|
|
|
}
|
2019-05-05 20:56:23 +08:00
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2019-08-07 01:47:45 +08:00
|
|
|
.exceptions ORIGIN(OCM) :
|
2019-05-31 02:30:19 +08:00
|
|
|
{
|
|
|
|
KEEP(*(.text.exceptions));
|
|
|
|
} > OCM
|
2019-08-07 01:47:45 +08:00
|
|
|
|
|
|
|
.__fill (NOLOAD) : {
|
|
|
|
. = ORIGIN(OCM) + 0x8000;
|
|
|
|
} > OCM
|
|
|
|
|
|
|
|
.text (ORIGIN(OCM) + 0x8000) :
|
2019-05-05 20:56:23 +08:00
|
|
|
{
|
2019-08-07 01:47:45 +08:00
|
|
|
*(.text.boot);
|
|
|
|
*(.text .text.*);
|
2019-05-27 07:44:24 +08:00
|
|
|
} > OCM
|
2019-05-05 20:56:23 +08:00
|
|
|
|
2019-08-07 01:47:45 +08:00
|
|
|
.rodata : ALIGN(4)
|
2019-05-05 20:56:23 +08:00
|
|
|
{
|
2019-08-07 01:47:45 +08:00
|
|
|
*(.rodata .rodata.*);
|
2019-05-27 07:44:24 +08:00
|
|
|
} > OCM
|
2019-05-05 20:56:23 +08:00
|
|
|
|
2019-08-07 01:47:45 +08:00
|
|
|
.data : ALIGN(4)
|
2019-05-05 20:56:23 +08:00
|
|
|
{
|
2019-08-07 01:47:45 +08:00
|
|
|
*(.data .data.*);
|
2019-05-27 07:44:24 +08:00
|
|
|
} > OCM
|
2019-05-05 20:56:23 +08:00
|
|
|
|
2019-08-07 01:47:45 +08:00
|
|
|
.bss (NOLOAD) : ALIGN(0x4000)
|
2019-05-05 20:56:23 +08:00
|
|
|
{
|
2019-06-18 08:22:07 +08:00
|
|
|
/* Aligned to 16 kB */
|
|
|
|
KEEP(*(.bss.l1_table));
|
2019-08-07 01:47:45 +08:00
|
|
|
*(.bss .bss.*);
|
|
|
|
. = ALIGN(4);
|
2019-05-27 07:44:24 +08:00
|
|
|
} > OCM
|
|
|
|
__bss_start = ADDR(.bss);
|
|
|
|
__bss_end = ADDR(.bss) + SIZEOF(.bss);
|
|
|
|
|
2019-08-07 01:47:45 +08:00
|
|
|
.stack (NOLOAD) : ALIGN(0x1000) {
|
2019-05-27 07:44:24 +08:00
|
|
|
. += STACK_SIZE;
|
|
|
|
} > OCM
|
|
|
|
__stack_end = ADDR(.stack);
|
2019-08-19 08:19:48 +08:00
|
|
|
__stack_start = ADDR(.stack) + SIZEOF(.stack) - 4;
|
2019-05-05 20:56:23 +08:00
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
/* Unused exception related info that only wastes space */
|
2019-08-07 01:47:45 +08:00
|
|
|
*(.ARM.exidx);
|
2019-05-05 20:56:23 +08:00
|
|
|
*(.ARM.exidx.*);
|
|
|
|
*(.ARM.extab.*);
|
|
|
|
}
|
|
|
|
}
|