source: rtems/c/src/lib/libbsp/arm/edb7312/startup/linkcmds @ 3d6669cc

4.104.114.84.95
Last change on this file since 3d6669cc was 3d6669cc, checked in by Joel Sherrill <joel.sherrill@…>, on 11/13/02 at 17:55:09

2002-11-13 Jay Monkman <jtm@…>

  • New BSP.
  • .cvsignore, ChangeLog?, Makefile.am, bsp_specs, configure.ac, README, times, clock/.cvsignore, clock/Makefile.am, clock/clockdrv.c, console/.cvsignore, console/Makefile.am, console/uart.c, include/.cvsignore, include/Makefile.am, include/bsp.h, include/ep7312.h, irq/.cvsignore, irq/Makefile.am, irq/bsp_irq_asm.S, irq/bsp_irq_init.c, irq/irq.c, irq/irq.h, network/Makefile.am, network/network.c, start/.cvsignore, start/Makefile.am, start/start.S, startup/.cvsignore, startup/Makefile.am, startup/bspstart.c, startup/exit.c, startup/linkcmds, timer/.cvsignore, timer/Makefile.am, timer/timer.c, wrapup/.cvsignore, wrapup/Makefile.am: New file.
  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[3d6669cc]1/*
2 * Cirrus EP7312 linker script
3 *
4 * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
5 *     
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *
9 *  http://www.OARcorp.com/rtems/license.html.
10 *
11 *
12 *  $Id$
13*/
14
15OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
16              "elf32-littlearm")
17OUTPUT_ARCH(arm)
18ENTRY(_start)
19/* SEARCH_DIR(/usr/local/rtems-arm-dev-tools/arm-rtems/lib); */
20
21
22MEMORY {
23        sdram : ORIGIN = 0x00000000, LENGTH = 16M
24        regs  : ORIGIN = 0x80000000, LENGTH = 1M
25}
26
27/*
28 * Declare some sizes.
29 */
30
31_sdram_base = DEFINED(_sdram_base) ? _sdram_base : 0x00000000;
32_sdram_size = DEFINED(_sdram_size) ? _sdram_size : 16M;
33
34
35_irq_stack_size = DEFINED(_irq_stack_size) ? _irq_stack_size : 0x1000;
36_fiq_stack_size = DEFINED(_fiq_stack_size) ? _fiq_stack_size : 0x400;
37_abt_stack_size = DEFINED(_abt_stack_size) ? _abt_stack_size : 0;
38_svc_stack_size = DEFINED(_svc_stack_size) ? _svc_stack_size : 0x1000;
39
40
41
42/* Do we need any of these for elf?
43   __DYNAMIC = 0;    */
44
45SECTIONS
46{
47  .base :
48  {
49    _sram_base = .;
50    arm_exception_table = .;   
51
52    arm_reset_vect    = .;     /* 0x00 */
53    . += 4;
54
55    arm_undef_vect    = .;     /* 0x04 */
56    . += 4;
57
58    arm_swi_vect      = .;     /* 0x08 */
59    . += 4;
60
61    arm_iabrt_vect    = .;     /* 0x0c */
62    . += 4;
63
64    arm_dabrt_vect    = .;     /* 0x10 */
65    . += 4;
66
67    /* no vector here */
68    . += 4;
69
70    arm_irq_vect      = .;     /* 0x18 */
71    . += 4;
72
73    arm_fiq_vect      = .;     /* 0x1c */
74    . += 4;
75                              /* FIXME: */
76    fiq_vect_table    = .;    /* this and irq_vector_table should be swapped */
77    . += (32 * 4);
78
79    irq_vector_table = .;
80    . += (32 * 4);     
81
82  } > sdram
83
84  .init          :
85  {
86    KEEP (*(.init))
87  } > sdram   /*=0*/
88
89  .text      :
90  {
91        _text_start = .;
92         CREATE_OBJECT_SYMBOLS
93        *(.text)
94        *(.text.*)
95        *(.glue_7)
96        *(.glue_7t)
97
98        /* I think these come from the ld docs: */     
99        ___CTOR_LIST__ = .;
100        LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)
101        *(.ctors)
102        LONG(0)
103        ___CTOR_END__ = .;
104        ___DTOR_LIST__ = .;
105        LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)
106        *(.dtors)
107        LONG(0)
108        ___DTOR_END__ = .;
109
110        _etext = .;
111        PROVIDE (etext = .);
112  } > sdram 
113
114  .fini      :
115  {
116    KEEP (*(.fini))
117  } > sdram  /*=0*/
118
119  .data :
120  {
121    *(.data)
122    *(.data.*)
123    *(.gnu.linkonce.d*)
124    *(.jcr)
125    SORT(CONSTRUCTORS)
126    _edata = .;
127  } > sdram
128
129  .eh_frame : { *(.eh_frame) } > RAM
130  .data1   : { *(.data1) } > RAM
131  .eh_frame : { *(.eh_frame) } > RAM
132  .gcc_except_table : { *(.gcc_except_table) } > RAM
133
134  .rodata :
135  {
136    *(.rodata)
137    *(.rodata.*)
138    *(.gnu.linkonce.r*)
139  } > sdram
140
141  .bss       :
142  {
143        _bss_start_ = .;
144        _clear_start = .;
145        *(.bss)
146        *(.bss.*)
147        *(COMMON)
148        . = ALIGN(64);
149        _clear_end = .;
150
151        . = ALIGN (256);
152        _abt_stack = .;
153        . += _abt_stack_size;
154
155        . = ALIGN (256);
156        _irq_stack = .;
157        . += _irq_stack_size;
158
159        . = ALIGN (256);
160        _fiq_stack = .;
161        . += _fiq_stack_size;
162
163        . = ALIGN (256);
164        _svc_stack = .;
165        . += _svc_stack_size;
166
167        _bss_end_ = .;
168        _end = .;
169        __end = .;
170
171
172        . = ALIGN (1024);
173        _bss_free_start = .;
174
175  } > sdram
176
177/*
178  .regs :
179  {
180        ep7312_regs_base = .;
181        ep7312_regs = .;
182        . += 8192;
183  } > regs
184*/
185
186
187/* Debugging stuff follows? */
188
189  /* Stabs debugging sections.  */
190  .stab 0 : { *(.stab) }
191  .stabstr 0 : { *(.stabstr) }
192  .stab.excl 0 : { *(.stab.excl) }
193  .stab.exclstr 0 : { *(.stab.exclstr) }
194  .stab.index 0 : { *(.stab.index) }
195  .stab.indexstr 0 : { *(.stab.indexstr) }
196  .comment 0 : { *(.comment) }
197  /* DWARF debug sections.
198     Symbols in the DWARF debugging sections are relative to the beginning
199     of the section so we begin them at 0.  */
200  /* DWARF 1 */
201  .debug          0 : { *(.debug) }
202  .line           0 : { *(.line) }
203  /* GNU DWARF 1 extensions */
204  .debug_srcinfo  0 : { *(.debug_srcinfo) }
205  .debug_sfnames  0 : { *(.debug_sfnames) }
206  /* DWARF 1.1 and DWARF 2 */
207  .debug_aranges  0 : { *(.debug_aranges) }
208  .debug_pubnames 0 : { *(.debug_pubnames) }
209  /* DWARF 2 */
210  .debug_info     0 : { *(.debug_info) }
211  .debug_abbrev   0 : { *(.debug_abbrev) }
212  .debug_line     0 : { *(.debug_line) }
213  .debug_frame    0 : { *(.debug_frame) }
214  .debug_str      0 : { *(.debug_str) }
215  .debug_loc      0 : { *(.debug_loc) }
216  .debug_macinfo  0 : { *(.debug_macinfo) }
217  /* SGI/MIPS DWARF 2 extensions */
218  .debug_weaknames 0 : { *(.debug_weaknames) }
219  .debug_funcnames 0 : { *(.debug_funcnames) }
220  .debug_typenames 0 : { *(.debug_typenames) }
221  .debug_varnames  0 : { *(.debug_varnames) }
222  /*.stack 0x80000 : { _stack = .; *(.stack) }*/
223  /* These must appear regardless of  .  */
224}
225
Note: See TracBrowser for help on using the repository browser.