/*******************************************************************/
|
/*******************************************************************/
|
/* */
|
/* */
|
/* This file is automatically generated by linker script generator.*/
|
/* This file is automatically generated by linker script generator.*/
|
/* */
|
/* */
|
/* Version: Xilinx EDK 8.1EDK_I.18.7 */
|
/* Version: Xilinx EDK 8.1EDK_I.18.7 */
|
/* */
|
/* */
|
/* Copyright (c) 2004 Xilinx, Inc. All rights reserved. */
|
/* Copyright (c) 2004 Xilinx, Inc. All rights reserved. */
|
/* */
|
/* */
|
/* Description : MicroBlaze Linker Script */
|
/* Description : MicroBlaze Linker Script */
|
/* */
|
/* */
|
/*******************************************************************/
|
/*******************************************************************/
|
|
|
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x3000;
|
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x3000;
|
_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x1000;
|
_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x1000;
|
|
|
/* Define Memories in the system */
|
/* Define Memories in the system */
|
|
|
MEMORY
|
MEMORY
|
{
|
{
|
ilmb_cntlr : ORIGIN = 0x00000050, LENGTH = 0x0000FFAF
|
ilmb_cntlr : ORIGIN = 0x00000050, LENGTH = 0x0000FFAF
|
dlmb_cntlr : ORIGIN = 0x00010000, LENGTH = 0x0000FFFF
|
dlmb_cntlr : ORIGIN = 0x00010000, LENGTH = 0x0000FFFF
|
data_bram_if_cntlr_0 : ORIGIN = 0x70000000, LENGTH = 0x0000FFFF
|
data_bram_if_cntlr_0 : ORIGIN = 0x70000000, LENGTH = 0x0000FFFF
|
}
|
}
|
|
|
/* Specify the default entry point to the program */
|
/* Specify the default entry point to the program */
|
|
|
ENTRY(_start)
|
ENTRY(_start)
|
|
|
/* Define the sections, and where they are mapped in memory */
|
/* Define the sections, and where they are mapped in memory */
|
|
|
SECTIONS
|
SECTIONS
|
{
|
{
|
.vectors.reset 0x00000000 : {
|
.vectors.reset 0x00000000 : {
|
*(.vectors.reset)
|
*(.vectors.reset)
|
}
|
}
|
|
|
.vectors.sw_exception 0x00000008 : {
|
.vectors.sw_exception 0x00000008 : {
|
*(.vectors.sw_exception)
|
*(.vectors.sw_exception)
|
}
|
}
|
|
|
.vectors.interrupt 0x00000010 : {
|
.vectors.interrupt 0x00000010 : {
|
*(.vectors.interrupt)
|
*(.vectors.interrupt)
|
}
|
}
|
|
|
.vectors.hw_exception 0x00000020 : {
|
.vectors.hw_exception 0x00000020 : {
|
*(.vectors.hw_exception)
|
*(.vectors.hw_exception)
|
}
|
}
|
|
|
.text : {
|
.text : {
|
*(.text)
|
*(.text)
|
*(.text.*)
|
*(.text.*)
|
*(.gnu.linkonce.t.*)
|
*(.gnu.linkonce.t.*)
|
} > ilmb_cntlr
|
} > ilmb_cntlr
|
|
|
.init : {
|
.init : {
|
KEEP (*(.init))
|
KEEP (*(.init))
|
} > ilmb_cntlr
|
} > ilmb_cntlr
|
|
|
.fini : {
|
.fini : {
|
KEEP (*(.fini))
|
KEEP (*(.fini))
|
} > ilmb_cntlr
|
} > ilmb_cntlr
|
|
|
.rodata : {
|
.rodata : {
|
__rodata_start = .;
|
__rodata_start = .;
|
*(.rodata)
|
*(.rodata)
|
*(.rodata.*)
|
*(.rodata.*)
|
*(.gnu.linkonce.r.*)
|
*(.gnu.linkonce.r.*)
|
__rodata_end = .;
|
__rodata_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.sdata2 : {
|
.sdata2 : {
|
. = ALIGN(8);
|
. = ALIGN(8);
|
__sdata2_start = .;
|
__sdata2_start = .;
|
*(.sdata2)
|
*(.sdata2)
|
*(.gnu.linkonce.s2.*)
|
*(.gnu.linkonce.s2.*)
|
. = ALIGN(8);
|
. = ALIGN(8);
|
__sdata2_end = .;
|
__sdata2_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.sbss2 : {
|
.sbss2 : {
|
__sbss2_start = .;
|
__sbss2_start = .;
|
*(.sbss2)
|
*(.sbss2)
|
*(.gnu.linkonce.sb2.*)
|
*(.gnu.linkonce.sb2.*)
|
__sbss2_end = .;
|
__sbss2_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.data : {
|
.data : {
|
. = ALIGN(4);
|
. = ALIGN(4);
|
__data_start = .;
|
__data_start = .;
|
*(.data)
|
*(.data)
|
*(.data.*)
|
*(.data.*)
|
*(.gnu.linkonce.d.*)
|
*(.gnu.linkonce.d.*)
|
__data_end = .;
|
__data_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.got : {
|
.got : {
|
*(.got)
|
*(.got)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.got1 : {
|
.got1 : {
|
*(.got1)
|
*(.got1)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.got2 : {
|
.got2 : {
|
*(.got2)
|
*(.got2)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.ctors : {
|
.ctors : {
|
__CTOR_LIST__ = .;
|
__CTOR_LIST__ = .;
|
___CTORS_LIST___ = .;
|
___CTORS_LIST___ = .;
|
KEEP (*crtbegin.o(.ctors))
|
KEEP (*crtbegin.o(.ctors))
|
KEEP (*(EXCLUDE_FILE(*crtend.o) .ctors))
|
KEEP (*(EXCLUDE_FILE(*crtend.o) .ctors))
|
KEEP (*(SORT(.ctors.*)))
|
KEEP (*(SORT(.ctors.*)))
|
KEEP (*(.ctors))
|
KEEP (*(.ctors))
|
__CTOR_END__ = .;
|
__CTOR_END__ = .;
|
___CTORS_END___ = .;
|
___CTORS_END___ = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.dtors : {
|
.dtors : {
|
__DTOR_LIST__ = .;
|
__DTOR_LIST__ = .;
|
___DTORS_LIST___ = .;
|
___DTORS_LIST___ = .;
|
KEEP (*crtbegin.o(.dtors))
|
KEEP (*crtbegin.o(.dtors))
|
KEEP (*(EXCLUDE_FILE(*crtend.o) .dtors))
|
KEEP (*(EXCLUDE_FILE(*crtend.o) .dtors))
|
KEEP (*(SORT(.dtors.*)))
|
KEEP (*(SORT(.dtors.*)))
|
KEEP (*(.dtors))
|
KEEP (*(.dtors))
|
__DTOR_END__ = .;
|
__DTOR_END__ = .;
|
___DTORS_END___ = .;
|
___DTORS_END___ = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.eh_frame : {
|
.eh_frame : {
|
*(.eh_frame)
|
*(.eh_frame)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.jcr : {
|
.jcr : {
|
*(.jcr)
|
*(.jcr)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.gcc_except_table : {
|
.gcc_except_table : {
|
*(.gcc_except_table)
|
*(.gcc_except_table)
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.sdata : {
|
.sdata : {
|
. = ALIGN(8);
|
. = ALIGN(8);
|
__sdata_start = .;
|
__sdata_start = .;
|
*(.sdata)
|
*(.sdata)
|
*(.gnu.linkonce.s.*)
|
*(.gnu.linkonce.s.*)
|
__sdata_end = .;
|
__sdata_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.sbss : {
|
.sbss : {
|
. = ALIGN(4);
|
. = ALIGN(4);
|
__sbss_start = .;
|
__sbss_start = .;
|
*(.sbss)
|
*(.sbss)
|
*(.gnu.linkonce.sb.*)
|
*(.gnu.linkonce.sb.*)
|
. = ALIGN(8);
|
. = ALIGN(8);
|
__sbss_end = .;
|
__sbss_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.tdata : {
|
.tdata : {
|
__tdata_start = .;
|
__tdata_start = .;
|
*(.tdata)
|
*(.tdata)
|
*(.gnu.linkonce.td.*)
|
*(.gnu.linkonce.td.*)
|
__tdata_end = .;
|
__tdata_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.tbss : {
|
.tbss : {
|
__tbss_start = .;
|
__tbss_start = .;
|
*(.tbss)
|
*(.tbss)
|
*(.gnu.linkonce.tb.*)
|
*(.gnu.linkonce.tb.*)
|
__tbss_end = .;
|
__tbss_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
.bss : {
|
.bss : {
|
. = ALIGN(4);
|
. = ALIGN(4);
|
__bss_start = .;
|
__bss_start = .;
|
*(.bss)
|
*(.bss)
|
*(.gnu.linkonce.b.*)
|
*(.gnu.linkonce.b.*)
|
*(COMMON)
|
*(COMMON)
|
. = ALIGN(4);
|
. = ALIGN(4);
|
__bss_end = .;
|
__bss_end = .;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
_SDA_BASE_ = __sdata_start + ((__sbss_end - __sdata_start) / 2 );
|
_SDA_BASE_ = __sdata_start + ((__sbss_end - __sdata_start) / 2 );
|
|
|
_SDA2_BASE_ = __sdata2_start + ((__sbss2_end - __sdata2_start) / 2 );
|
_SDA2_BASE_ = __sdata2_start + ((__sbss2_end - __sdata2_start) / 2 );
|
|
|
/* Generate Stack and Heap definitions */
|
/* Generate Stack and Heap definitions */
|
|
|
bss_stack : {
|
bss_stack : {
|
. = ALIGN(8);
|
. = ALIGN(8);
|
_heap = .;
|
_heap = .;
|
_heap_start = _heap;
|
_heap_start = _heap;
|
. += _HEAP_SIZE;
|
. += _HEAP_SIZE;
|
. += _STACK_SIZE;
|
. += _STACK_SIZE;
|
. = ALIGN(8);
|
. = ALIGN(8);
|
_stack = .;
|
_stack = .;
|
__stack = _stack;
|
__stack = _stack;
|
} > dlmb_cntlr
|
} > dlmb_cntlr
|
|
|
}
|
}
|
|
|
|
|