forked from M-Labs/artiq-zynq
65 lines
1.1 KiB
Plaintext
65 lines
1.1 KiB
Plaintext
ENTRY(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 = .;
|
|
*(.bss .bss.*);
|
|
. = ALIGN(4);
|
|
__bss_end = .;
|
|
} > OCM3
|
|
|
|
.heap (NOLOAD) : ALIGN(8)
|
|
{
|
|
__heap0_start = .;
|
|
__heap0_end = .;
|
|
} > OCM3
|
|
|
|
.stack1 (NOLOAD) : ALIGN(8)
|
|
{
|
|
__stack1_end = .;
|
|
. += 0x4000;
|
|
__stack1_start = .;
|
|
} > OCM3
|
|
|
|
.stack0 (NOLOAD) : ALIGN(8)
|
|
{
|
|
__stack0_end = .;
|
|
. += 0x4000;
|
|
__stack0_start = .;
|
|
} > OCM3
|
|
|
|
/DISCARD/ :
|
|
{
|
|
/* Unused exception related info that only wastes space */
|
|
*(.ARM.exidx);
|
|
*(.ARM.exidx.*);
|
|
*(.ARM.extab.*);
|
|
}
|
|
}
|