OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF5282_Eclipse/] [RTOSDemo/] [m5282evb-dram_code-rambar_data-hosted.ld] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Linker script for m5282evb
2
 *
3
 * Version:Sourcery G++ Lite 4.2-125
4
 * BugURL:https://support.codesourcery.com/GNUToolchain/
5
 *
6
 *  Copyright 2007, 2008 CodeSourcery.
7
 *
8
 * The authors hereby grant permission to use, copy, modify, distribute,
9
 * and license this software and its documentation for any purpose, provided
10
 * that existing copyright notices are retained in all copies and that this
11
 * notice is included verbatim in any distributions. No written agreement,
12
 * license, or royalty fee is required for any of the authorized uses.
13
 * Modifications to this software may be copyrighted by their authors
14
 * and need not follow the licensing terms described here, provided that
15
 * the new terms are clearly indicated on the first page of each file where
16
 * they apply. */
17
 
18
OUTPUT_ARCH(m68k)
19
ENTRY(_start)
20
SEARCH_DIR(.)
21
GROUP(-lgcc -lc -lcs3 -lcs3hosted -lcs3coldfire)
22
 
23
MEMORY
24
{
25
  ram (rwx) : ORIGIN = 0x00000000, LENGTH = 16M
26
  rom (rx) : ORIGIN = 0xFFE00000, LENGTH = 2M
27
  rombar (rx) : ORIGIN = 0xf0000000, LENGTH = 512K
28
  rambar (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
29
  ipsbar (rw) : ORIGIN = 0x40000000, LENGTH = 0x20000000
30
}
31
 
32
/* These force the linker to search for particular symbols from
33
 * the start of the link process and thus ensure the user's
34
 * overrides are picked up
35
 */
36
EXTERN(__cs3_reset_m5282evb)
37
INCLUDE coldfire-names.inc
38
EXTERN(__cs3_interrupt_vector_coldfire)
39
EXTERN(__cs3_start_c main __cs3_stack __cs3_heap_end)
40
EXTERN(_start)
41
/* force exit to be picked up in a hosted or os environment */
42
EXTERN(exit atexit)
43
 
44
PROVIDE(__cs3_heap_start = _end);
45
PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram);
46
PROVIDE(__cs3_region_num = (__cs3_regions_end - __cs3_regions) / 20);
47
PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram);
48
 
49
SECTIONS
50
{
51
 
52
  .text :
53
  {
54
    CREATE_OBJECT_SYMBOLS
55
    __cs3_region_start_ram = .;
56
    *(.cs3.region-head.ram)
57
    ASSERT (. == __cs3_region_start_ram, ".cs3.region-head.ram not permitted");
58
    __cs3_interrupt_vector = __cs3_interrupt_vector_coldfire;
59
    *(.cs3.interrupt_vector)
60
    /* Make sure we pulled in an interrupt vector.  */
61
    ASSERT (. != __cs3_interrupt_vector_coldfire, "No interrupt vector");
62
 
63
    PROVIDE(__cs3_reset_m5282evb = _start);
64
    __cs3_reset = __cs3_reset_m5282evb;
65
    *(.cs3.reset)
66
 
67
    *(.text .text.* .gnu.linkonce.t.*)
68
 
69
    . = ALIGN(0x4);
70
    KEEP (*crtbegin.o(.jcr))
71
    KEEP (*(EXCLUDE_FILE (*crtend.o) .jcr))
72
    KEEP (*crtend.o(.jcr))
73
 
74
    . = ALIGN(0x4);
75
    *(.gcc_except_table .gcc_except_table.*)
76
  } >ram
77
  .eh_frame_hdr : ALIGN (4)
78
  {
79
    KEEP (*(.eh_frame_hdr))
80
  } >ram
81
  .eh_frame : ALIGN (4)
82
  {
83
    KEEP (*(.eh_frame))
84
  } >ram
85
  .rodata : ALIGN (4)
86
  {
87
    *(.rodata .rodata.* .gnu.linkonce.r.*)
88
 
89
    . = ALIGN(4);
90
    _init = .;
91
    LONG (0x4e560000)   /* linkw %fp,#0 */
92
    KEEP(*(.init))
93
    SHORT (0x4e5e)      /* unlk %fp */
94
    SHORT (0x4e75)      /* rts */
95
 
96
    . = ALIGN(4);
97
    __preinit_array_start = .;
98
    KEEP (*(.preinit_array))
99
    __preinit_array_end = .;
100
 
101
    . = ALIGN(4);
102
    __init_array_start = .;
103
    KEEP (*(SORT(.init_array.*)))
104
    KEEP (*(.init_array))
105
    __init_array_end = .;
106
 
107
    . = ALIGN(4);
108
    _fini = .;
109
    LONG (0x4e560000)   /* linkw %fp,#0 */
110
    KEEP(*(.fini))
111
    SHORT (0x4e5e)      /* unlk %fp */
112
    SHORT (0x4e75)      /* rts */
113
 
114
    . = ALIGN(4);
115
    __fini_array_start = .;
116
    KEEP (*(.fini_array))
117
    KEEP (*(SORT(.fini_array.*)))
118
    __fini_array_end = .;
119
 
120
    . = ALIGN(0x4);
121
    KEEP (*crtbegin.o(.ctors))
122
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
123
    KEEP (*(SORT(.ctors.*)))
124
    KEEP (*crtend.o(.ctors))
125
 
126
    . = ALIGN(0x4);
127
    KEEP (*crtbegin.o(.dtors))
128
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
129
    KEEP (*(SORT(.dtors.*)))
130
    KEEP (*crtend.o(.dtors))
131
 
132
    *(.lit)
133
 
134
    . = ALIGN(4);
135
    __cs3_regions = .;
136
    LONG (0)
137
    LONG (__cs3_region_init_ram)
138
    LONG (__cs3_region_start_ram)
139
    LONG (__cs3_region_init_size_ram)
140
    LONG (__cs3_region_zero_size_ram)
141
    LONG (0)
142
    LONG (__cs3_region_init_rombar)
143
    LONG (__cs3_region_start_rombar)
144
    LONG (__cs3_region_init_size_rombar)
145
    LONG (__cs3_region_zero_size_rombar)
146
    LONG (0)
147
    LONG (__cs3_region_init_rambar)
148
    LONG (__cs3_region_start_rambar)
149
    LONG (__cs3_region_init_size_rambar)
150
    LONG (__cs3_region_zero_size_rambar)
151
    __cs3_regions_end = .;
152
 
153
    . = ALIGN (8);
154
    . = ALIGN (8);
155
    _etext = .;
156
  } >ram
157
 
158
  .cs3.rom : ALIGN (8)
159
  {
160
    __cs3_region_start_rom = .;
161
    *(.cs3.region-head.rom)
162
    *(.rom)
163
    . = ALIGN (8);
164
  } >rom
165
  .cs3.rom.bss :
166
  {
167
    *(.rom.b)
168
    . = ALIGN (8);
169
  } >rom
170
  /* __cs3_region_end_rom is deprecated */
171
  __cs3_region_end_rom = __cs3_region_start_rom + LENGTH(rom);
172
  __cs3_region_size_rom = LENGTH(rom);
173
  __cs3_region_init_rom = LOADADDR (.cs3.rom);
174
  __cs3_region_init_size_rom = LOADADDR (.cs3.rom.bss) - LOADADDR (.cs3.rom);
175
  __cs3_region_zero_size_rom = SIZEOF(.cs3.rom.bss);
176
 
177
  .cs3.rombar : ALIGN (8)
178
  {
179
    __cs3_region_start_rombar = .;
180
    *(.cs3.region-head.rombar)
181
    *(.rombar)
182
    . = ALIGN (8);
183
  } >rombar
184
  .cs3.rombar.bss :
185
  {
186
    *(.rombar.b)
187
    . = ALIGN (8);
188
  } >rombar
189
  /* __cs3_region_end_rombar is deprecated */
190
  __cs3_region_end_rombar = __cs3_region_start_rombar + LENGTH(rombar);
191
  __cs3_region_size_rombar = LENGTH(rombar);
192
  __cs3_region_init_rombar = LOADADDR (.cs3.rombar);
193
  __cs3_region_init_size_rombar = LOADADDR (.cs3.rombar.bss) - LOADADDR (.cs3.rombar);
194
  __cs3_region_zero_size_rombar = SIZEOF(.cs3.rombar.bss);
195
 
196
  .cs3.rambar : ALIGN (8)
197
  {
198
    __cs3_region_start_rambar = .;
199
    *(.cs3.region-head.rambar)
200
    *(.rambar)
201
    . = ALIGN (8);
202
  } >rambar
203
  .cs3.rambar.bss :
204
  {
205
    *(.rambar.b)
206
    . = ALIGN (8);
207
  } >rambar
208
  /* __cs3_region_end_rambar is deprecated */
209
  __cs3_region_end_rambar = __cs3_region_start_rambar + LENGTH(rambar);
210
  __cs3_region_size_rambar = LENGTH(rambar);
211
  __cs3_region_init_rambar = LOADADDR (.cs3.rambar);
212
  __cs3_region_init_size_rambar = LOADADDR (.cs3.rambar.bss) - LOADADDR (.cs3.rambar);
213
  __cs3_region_zero_size_rambar = SIZEOF(.cs3.rambar.bss);
214
 
215
  .cs3.ipsbar :
216
  {
217
    __cs3_region_start_ipsbar = .;
218
    *(.cs3.region-head.ipsbar)
219
    . = ALIGN (8);
220
  } >ipsbar
221
  /* __cs3_region_end_ipsbar is deprecated */
222
  __cs3_region_end_ipsbar = __cs3_region_start_ipsbar + LENGTH(ipsbar);
223
  __cs3_region_size_ipsbar = LENGTH(ipsbar);
224
 
225
  .data : ALIGN (8)
226
  {
227
 
228
    *(.got.plt) *(.got)
229
    *(.shdata)
230
    *(.data .data.* .gnu.linkonce.d.*)
231
    . = ALIGN (8);
232
    *(.ram)
233
    _edata = .;
234
  } >rambar
235
  .bss :
236
  {
237
    *(.shbss)
238
    *(.bss .bss.* .gnu.linkonce.b.*)
239
    *(COMMON)
240
    . = ALIGN (8);
241
    *(.ram.b)
242
    _end = .;
243
    __end = .;
244
  } >rambar
245
  /* __cs3_region_end_ram is deprecated */
246
  __cs3_region_end_ram = __cs3_region_start_ram + LENGTH(ram);
247
  __cs3_region_size_ram = LENGTH(ram);
248
  __cs3_region_init_ram = LOADADDR (.text);
249
  __cs3_region_init_size_ram = _edata - ADDR (.text);
250
  __cs3_region_zero_size_ram = _end - _edata;
251
 
252
  .stab 0 (NOLOAD) : { *(.stab) }
253
  .stabstr 0 (NOLOAD) : { *(.stabstr) }
254
  /* DWARF debug sections.
255
   * Symbols in the DWARF debugging sections are relative to the beginning
256
   * of the section so we begin them at 0.  */
257
  /* DWARF 1 */
258
  .debug          0 : { *(.debug) }
259
  .line           0 : { *(.line) }
260
  /* GNU DWARF 1 extensions */
261
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
262
  .debug_sfnames  0 : { *(.debug_sfnames) }
263
  /* DWARF 1.1 and DWARF 2 */
264
  .debug_aranges  0 : { *(.debug_aranges) }
265
  .debug_pubnames 0 : { *(.debug_pubnames) }
266
  /* DWARF 2 */
267
  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
268
  .debug_abbrev   0 : { *(.debug_abbrev) }
269
  .debug_line     0 : { *(.debug_line) }
270
  .debug_frame    0 : { *(.debug_frame) }
271
  .debug_str      0 : { *(.debug_str) }
272
  .debug_loc      0 : { *(.debug_loc) }
273
  .debug_macinfo  0 : { *(.debug_macinfo) }
274
  /* SGI/MIPS DWARF 2 extensions */
275
  .debug_weaknames 0 : { *(.debug_weaknames) }
276
  .debug_funcnames 0 : { *(.debug_funcnames) }
277
  .debug_typenames 0 : { *(.debug_typenames) }
278
  .debug_varnames  0 : { *(.debug_varnames) }
279
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.