source: Documentation/ReferenceDesigns/InterruptRef_xps_8_2/interruptTestrBeta_linker_script.ld

Last change on this file was 485, checked in by chunter, 17 years ago

Interrupt reference design demonstrates the correct way to initialize and configure interrupts with the interrupt controller.

File size: 3.9 KB
Line 
1/*******************************************************************/
2/*                                                                 */
3/* This file is automatically generated by linker script generator.*/
4/*                                                                 */
5/* Version: Xilinx EDK 8.2.01EDK_Im_Sp1.3                                  */
6/*                                                                 */
7/* Copyright (c) 2004 Xilinx, Inc.  All rights reserved.           */
8/*                                                                 */
9/* Description : PowerPC405 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   iocm_cntlr : ORIGIN = 0x00000000, LENGTH = 0x00020000
21   plb_bram_if_cntlr_1 : ORIGIN = 0xFFFE0000, LENGTH = 0x00020000
22   docm_cntlr : ORIGIN = 0x21800000, LENGTH = 0x00010000
23}
24
25/* Specify the default entry point to the program */
26
27ENTRY(_boot)
28STARTUP(boot.o)
29
30/* Define the sections, and where they are mapped in memory */
31
32SECTIONS
33{
34.vectors : {
35   __vectors_start = .;
36   *(.vectors)
37   __vectors_end = .;
38} > iocm_cntlr
39
40.text : {
41   *(.text)
42   *(.text.*)
43   *(.gnu.linkonce.t.*)
44} > iocm_cntlr
45
46.init : {
47   KEEP (*(.init))
48} > iocm_cntlr
49
50.fini : {
51   KEEP (*(.fini))
52} > iocm_cntlr
53
54.rodata : {
55   __rodata_start = .;
56   *(.rodata)
57   *(.rodata.*)
58   *(.gnu.linkonce.r.*)
59   __rodata_end = .;
60} > docm_cntlr
61
62.sdata2 : {
63   __sdata2_start = .;
64   *(.sdata2)
65   *(.gnu.linkonce.s2.*)
66   __sdata2_end = .;
67} > docm_cntlr
68
69.sbss2 : {
70   __sbss2_start = .;
71   *(.sbss2)
72   *(.gnu.linkonce.sb2.*)
73   __sbss2_end = .;
74} > docm_cntlr
75
76.data : {
77   __data_start = .;
78   *(.data)
79   *(.data.*)
80   *(.gnu.linkonce.d.*)
81   __data_end = .;
82} > docm_cntlr
83
84.got : {
85   *(.got)
86} > docm_cntlr
87
88.got1 : {
89   *(.got1)
90} > docm_cntlr
91
92.got2 : {
93   *(.got2)
94} > docm_cntlr
95
96.ctors : {
97   __CTOR_LIST__ = .;
98   ___CTORS_LIST___ = .;
99   KEEP (*crtbegin.o(.ctors))
100   KEEP (*(EXCLUDE_FILE(*crtend.o) .ctors))
101   KEEP (*(SORT(.ctors.*)))
102   KEEP (*(.ctors))
103   __CTOR_END__ = .;
104   ___CTORS_END___ = .;
105} > docm_cntlr
106
107.dtors : {
108   __DTOR_LIST__ = .;
109   ___DTORS_LIST___ = .;
110   KEEP (*crtbegin.o(.dtors))
111   KEEP (*(EXCLUDE_FILE(*crtend.o) .dtors))
112   KEEP (*(SORT(.dtors.*)))
113   KEEP (*(.dtors))
114   __DTOR_END__ = .;
115   ___DTORS_END___ = .;
116} > docm_cntlr
117
118.fixup : {
119   __fixup_start = .;
120   *(.fixup)
121   __fixup_end = .;
122} > docm_cntlr
123
124.eh_frame : {
125   *(.eh_frame)
126} > docm_cntlr
127
128.jcr : {
129   *(.jcr)
130} > docm_cntlr
131
132.gcc_except_table : {
133   *(.gcc_except_table)
134} > docm_cntlr
135
136.sdata : {
137   __sdata_start = .;
138   *(.sdata)
139   *(.gnu.linkonce.s.*)
140   __sdata_end = .;
141} > docm_cntlr
142
143.sbss : {
144   __sbss_start = .;
145   *(.sbss)
146   *(.gnu.linkonce.sb.*)
147   *(.scommon)
148   __sbss_end = .;
149} > docm_cntlr
150
151.tdata : {
152   __tdata_start = .;
153   *(.tdata)
154   *(.gnu.linkonce.td.*)
155   __tdata_end = .;
156} > docm_cntlr
157
158.tbss : {
159   __tbss_start = .;
160   *(.tbss)
161   *(.gnu.linkonce.tb.*)
162   __tbss_end = .;
163} > docm_cntlr
164
165.bss : {
166   __bss_start = .;
167   *(.bss)
168   *(.gnu.linkonce.b.*)
169   *(COMMON)
170   . = ALIGN(4);
171   __bss_end = .;
172} > docm_cntlr
173
174.boot0 : {
175   __boot0_start = .;
176   *(.boot0)
177   __boot0_end = .;
178} > iocm_cntlr
179
180.boot 0xFFFFFFFC : {
181   __boot_start = .;
182   *(.boot)
183   __boot_end = .;
184}
185
186/* Generate Stack and Heap Sections */
187
188.stack : {
189   _stack_end = .;
190   . += _STACK_SIZE;
191   . = ALIGN(16);
192   __stack = .;
193} > docm_cntlr
194
195.heap : {
196   . = ALIGN(16);
197   _heap_start = .;
198   . += _HEAP_SIZE;
199   . = ALIGN(16);
200   _heap_end = .;
201} > docm_cntlr
202
203}
204
Note: See TracBrowser for help on using the repository browser.