source: ResearchApps/PHY/WARPLAB/WARPLab7/C_Code_Reference/lscript.ld

Last change on this file was 5610, checked in by murphpo, 8 years ago

Deprecating PPC linker script, renaming MB linker script

File size: 5.7 KB
Line 
1/*******************************************************************/
2/*                                                                 */
3/* This file is automatically generated by linker script generator.*/
4/*                                                                 */
5/* Version: Xilinx EDK 14.4 EDK_P.49d                                */
6/*                                                                 */
7/* Copyright (c) 2010 Xilinx, Inc.  All rights reserved.           */
8/*                                                                 */
9/* Description : MicroBlaze Linker Script                          */
10/*                                                                 */
11/*******************************************************************/
12
13_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
14_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x400;
15
16/* Define Memories in the system */
17
18MEMORY
19{
20   microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl : ORIGIN = 0x00000050, LENGTH = 0x0001FFB0
21   axi_bram_0_S_AXI_BASEADDR : ORIGIN = 0x50000000, LENGTH = 0x00020000
22   ddr3_sodimm_S_AXI_BASEADDR : ORIGIN = 0x80000000, LENGTH = 0x80000000
23   rfa_iq_rx_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x21000000, LENGTH = 0x00010000
24   rfa_rssi_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x21020000, LENGTH = 0x00002000
25   rfa_iq_tx_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x21040000, LENGTH = 0x00020000
26   rfb_iq_rx_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x21080000, LENGTH = 0x00010000
27   rfb_rssi_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x210A0000, LENGTH = 0x00002000
28   rfb_iq_tx_buffer_ctrl_S_AXI_BASEADDR : ORIGIN = 0x210C0000, LENGTH = 0x00020000
29}
30
31/* Specify the default entry point to the program */
32
33ENTRY(_start)
34
35/* Define the sections, and where they are mapped in memory */
36
37SECTIONS
38{
39.vectors.reset 0x00000000 : {
40   *(.vectors.reset)
41}
42
43.vectors.sw_exception 0x00000008 : {
44   *(.vectors.sw_exception)
45}
46
47.vectors.interrupt 0x00000010 : {
48   *(.vectors.interrupt)
49}
50
51.vectors.hw_exception 0x00000020 : {
52   *(.vectors.hw_exception)
53}
54
55.text : {
56   *(.text)
57   *(.text.*)
58   *(.gnu.linkonce.t.*)
59} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
60
61.init : {
62   KEEP (*(.init))
63} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
64
65.fini : {
66   KEEP (*(.fini))
67} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
68
69.ctors : {
70   __CTOR_LIST__ = .;
71   ___CTORS_LIST___ = .;
72   KEEP (*crtbegin.o(.ctors))
73   KEEP (*(EXCLUDE_FILE(*crtend.o) .ctors))
74   KEEP (*(SORT(.ctors.*)))
75   KEEP (*(.ctors))
76   __CTOR_END__ = .;
77   ___CTORS_END___ = .;
78} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
79
80.dtors : {
81   __DTOR_LIST__ = .;
82   ___DTORS_LIST___ = .;
83   KEEP (*crtbegin.o(.dtors))
84   KEEP (*(EXCLUDE_FILE(*crtend.o) .dtors))
85   KEEP (*(SORT(.dtors.*)))
86   KEEP (*(.dtors))
87   PROVIDE(__DTOR_END__ = .);
88   PROVIDE(___DTORS_END___ = .);
89} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
90
91.rodata : {
92   __rodata_start = .;
93   *(.rodata)
94   *(.rodata.*)
95   *(.gnu.linkonce.r.*)
96   __rodata_end = .;
97} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
98
99.sdata2 : {
100   . = ALIGN(8);
101   __sdata2_start = .;
102   *(.sdata2)
103   *(.sdata2.*)
104   *(.gnu.linkonce.s2.*)
105   . = ALIGN(8);
106   __sdata2_end = .;
107} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
108
109.sbss2 : {
110   __sbss2_start = .;
111   *(.sbss2)
112   *(.sbss2.*)
113   *(.gnu.linkonce.sb2.*)
114   __sbss2_end = .;
115} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
116
117.data : {
118   . = ALIGN(4);
119   __data_start = .;
120   *(.data)
121   *(.data.*)
122   *(.gnu.linkonce.d.*)
123   __data_end = .;
124} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
125
126.got : {
127   *(.got)
128} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
129
130.got1 : {
131   *(.got1)
132} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
133
134.got2 : {
135   *(.got2)
136} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
137
138.eh_frame : {
139   *(.eh_frame)
140} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
141
142.jcr : {
143   *(.jcr)
144} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
145
146.gcc_except_table : {
147   *(.gcc_except_table)
148} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
149
150.sdata : {
151   . = ALIGN(8);
152   __sdata_start = .;
153   *(.sdata)
154   *(.sdata.*)
155   *(.gnu.linkonce.s.*)
156   __sdata_end = .;
157} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
158
159.sbss (NOLOAD) : {
160   . = ALIGN(4);
161   __sbss_start = .;
162   *(.sbss)
163   *(.sbss.*)
164   *(.gnu.linkonce.sb.*)
165   . = ALIGN(8);
166   __sbss_end = .;
167} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
168
169.tdata : {
170   __tdata_start = .;
171   *(.tdata)
172   *(.tdata.*)
173   *(.gnu.linkonce.td.*)
174   __tdata_end = .;
175} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
176
177.tbss : {
178   __tbss_start = .;
179   *(.tbss)
180   *(.tbss.*)
181   *(.gnu.linkonce.tb.*)
182   __tbss_end = .;
183} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
184
185.bss (NOLOAD) : {
186   . = ALIGN(4);
187   __bss_start = .;
188   *(.bss)
189   *(.bss.*)
190   *(.gnu.linkonce.b.*)
191   *(COMMON)
192   . = ALIGN(4);
193   __bss_end = .;
194} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
195
196.eth_data : {
197   *(.eth_data)
198} > axi_bram_0_S_AXI_BASEADDR
199
200
201_SDA_BASE_ = __sdata_start + ((__sbss_end - __sdata_start) / 2 );
202
203_SDA2_BASE_ = __sdata2_start + ((__sbss2_end - __sdata2_start) / 2 );
204
205/* Generate Stack and Heap definitions */
206
207.heap (NOLOAD) : {
208   . = ALIGN(8);
209   _heap = .;
210   _heap_start = .;
211   . += _HEAP_SIZE;
212   _heap_end = .;
213} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
214
215.stack (NOLOAD) : {
216   _stack_end = .;
217   . += _STACK_SIZE;
218   . = ALIGN(8);
219   _stack = .;
220   __stack = _stack;
221} > microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl
222
223_end = .;
224}
225
Note: See TracBrowser for help on using the repository browser.