forked from M-Labs/zynq-rs
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
ENTRY(_boot_cores);
|
|
|
|
/* Provide some defaults */
|
|
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);
|
|
|
|
MEMORY
|
|
{
|
|
/* 256 kB On-Chip Memory */
|
|
OCM : ORIGIN = 0, LENGTH = 0x30000
|
|
OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
KEEP(*(.text.exceptions));
|
|
*(.text.boot);
|
|
*(.text .text.*);
|
|
} > OCM
|
|
|
|
.rodata : ALIGN(4)
|
|
{
|
|
*(.rodata .rodata.*);
|
|
} > OCM
|
|
|
|
.data : ALIGN(4)
|
|
{
|
|
*(.data .data.*);
|
|
} > OCM
|
|
|
|
.bss (NOLOAD) : ALIGN(4)
|
|
{
|
|
__bss_start = .;
|
|
/* Aligned to 16 kB */
|
|
KEEP(*(.bss.l1_table));
|
|
*(.bss .bss.*);
|
|
. = ALIGN(4);
|
|
__bss_end = .;
|
|
} > OCM
|
|
|
|
.stack (NOLOAD) : ALIGN(8) {
|
|
__stack_end = .;
|
|
. = ORIGIN(OCM) + LENGTH(OCM) - 8;
|
|
__stack_start = .;
|
|
} > OCM
|
|
|
|
/DISCARD/ :
|
|
{
|
|
/* Unused exception related info that only wastes space */
|
|
*(.ARM.exidx);
|
|
*(.ARM.exidx.*);
|
|
*(.ARM.extab.*);
|
|
}
|
|
}
|
|
|
|
ASSERT(SIZEOF(.stack) >= 0x8000, "less than 32 KB left for stack");
|