source: rtems/c/src/lib/libbsp/arm/arm_bare_bsp/startup/linkcmds @ ce0f13ef

4.104.114.84.95
Last change on this file since ce0f13ef was ce0f13ef, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/15/03 at 08:06:17

2003-12-15 Ralf Corsepius <corsepiu@…>

  • startup/linkcmds: Remove SEARCH_DIR.
  • Property mode set to 100644
File size: 6.7 KB
RevLine 
[08330bf]1OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
2              "elf32-littlearm")
3OUTPUT_ARCH(arm)
4ENTRY(_start)
5MEMORY {
6        FLASH (rx)  : ORIGIN = 0x200000, LENGTH = 512K
7        RAM   (!rx) : ORIGIN = 0x400000, LENGTH = 128K
8}
9
10/* Do we need any of these for elf?
11   __DYNAMIC = 0;    */
12SECTIONS
13{
14  /* Read-only sections, merged into text segment: */
15/*  . = 0 + SIZEOF_HEADERS;*/
16  .hash          : { *(.hash)                   } > FLASH
17  .dynsym        : { *(.dynsym)                 } > FLASH
18  .dynstr        : { *(.dynstr)                 } > FLASH
19  .gnu.version   : { *(.gnu.version)            } > FLASH
20  .gnu.version_d   : { *(.gnu.version_d)        } > FLASH
21  .gnu.version_r   : { *(.gnu.version_r)        } > FLASH
22  .rel.init      : { *(.rel.init)               } > FLASH
23  .rela.init     : { *(.rela.init)              } > FLASH
24  .rel.text      :
25    {
26      *(.rel.text)
27      *(.rel.text.*)
28      *(.rel.gnu.linkonce.t*)
29    } > FLASH
30  .rela.text     :
31    {
32      *(.rela.text)
33      *(.rela.text.*)
34      *(.rela.gnu.linkonce.t*)
35    } > FLASH
36  .rel.fini      : { *(.rel.fini)       } > FLASH
37  .rela.fini     : { *(.rela.fini)      } > FLASH
38  .rel.rodata    :
39    {
40      *(.rel.rodata)
41      *(.rel.rodata.*)
42      *(.rel.gnu.linkonce.r*)
43    } > FLASH
44  .rela.rodata   :
45    {
46      *(.rela.rodata)
47      *(.rela.rodata.*)
48      *(.rela.gnu.linkonce.r*)
49    } > FLASH
50  .rel.data      :
51    {
52      *(.rel.data)
53      *(.rel.data.*)
54      *(.rel.gnu.linkonce.d*)
55    } > FLASH
56  .rela.data     :
57    {
58      *(.rela.data)
59      *(.rela.data.*)
60      *(.rela.gnu.linkonce.d*)
61    } > FLASH
62  .rel.ctors     : { *(.rel.ctors)      } > FLASH
63  .rela.ctors    : { *(.rela.ctors)     } > FLASH
64  .rel.dtors     : { *(.rel.dtors)      } > FLASH
65  .rela.dtors    : { *(.rela.dtors)     } > FLASH
66  .rel.got       : { *(.rel.got)        } > FLASH
67  .rela.got      : { *(.rela.got)       } > FLASH
68  .rel.sdata     :
69    {
70      *(.rel.sdata)
71      *(.rel.sdata.*)
72      *(.rel.gnu.linkonce.s*)
73    } > FLASH
74  .rela.sdata     :
75    {
76      *(.rela.sdata)
77      *(.rela.sdata.*)
78      *(.rela.gnu.linkonce.s*)
79    } > FLASH
80  .rel.sbss      : { *(.rel.sbss)               } > FLASH
81  .rela.sbss     : { *(.rela.sbss)              } > FLASH
82  .rel.bss       : { *(.rel.bss)                } > FLASH
83  .rela.bss      : { *(.rela.bss)               } > FLASH
84  .rel.plt       : { *(.rel.plt)                } > FLASH
85  .rela.plt      : { *(.rela.plt)               } > FLASH
86  .init          :
87  {
88    KEEP (*(.init))
89  } > FLASH   /*=0*/
90  .plt      : { *(.plt) } > FLASH
91  .text      :
92  {
93    *(.text)
94    *(.text.*)
95    *(.stub)
[7b0c547a]96
97    /*
98     * Special FreeBSD sysctl sections.
99     */
100    . = ALIGN (16);
101    __start_set_sysctl_set = .;
102    *(set_sysctl_*);
103    __stop_set_sysctl_set = ABSOLUTE(.);
104    *(set_domain_*);
105    *(set_pseudo_*);
106
[08330bf]107    /* .gnu.warning sections are handled specially by elf32.em.  */
108    *(.gnu.warning)
109    *(.gnu.linkonce.t*)
110    *(.glue_7t) *(.glue_7)
111  } > FLASH  /*=0*/
112  _etext = .;
113  PROVIDE (etext = .);
114  .fini      :
115  {
116    KEEP (*(.fini))
117  } > FLASH  /*=0*/
118  .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) } > FLASH
119  .rodata1   : { *(.rodata1) } > FLASH
120  _erodata = ABSOLUTE(.);
121  PROVIDE (erodata =  ABSOLUTE(.));
122  /* Adjust the address for the data segment.  We want to adjust up to
123     the same address within the page on the next page up.  */
124  . = ALIGN(256);
125  _begdata = ALIGN(256);
126  .arm_end_text :
127  {
128    . = ALIGN(256);
129    _initdata = ALIGN(256);
130  } > FLASH     
131  .data : AT (_begdata)
132  {
[85c92574]133    *(.data*)
[08330bf]134    *(.gnu.linkonce.d*)
[85c92574]135    *(.jcr)
[08330bf]136    SORT(CONSTRUCTORS)
137  } > RAM
138  .data1   : { *(.data1) } > RAM
139  .eh_frame : { *(.eh_frame) } > RAM
140  .gcc_except_table : { *(.gcc_except_table) } > RAM
141  .ctors   :
142  {
143    /* gcc uses crtbegin.o to find the start of
144       the constructors, so we make sure it is
145       first.  Because this is a wildcard, it
146       doesn't matter if the user does not
147       actually link against crtbegin.o; the
148       linker won't look for a file to match a
149       wildcard.  The wildcard also means that it
150       doesn't matter which directory crtbegin.o
151       is in.  */
152    KEEP (*crtbegin.o(.ctors))
153    /* We don't want to include the .ctor section from
154       from the crtend.o file until after the sorted ctors.
155       The .ctor section from the crtend file contains the
156       end of ctors marker and it must be last */
157    KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
158    KEEP (*(SORT(.ctors.*)))
159    KEEP (*(.ctors))
160  } > RAM
161   .dtors         :
162  {
163    KEEP (*crtbegin.o(.dtors))
164    KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
165    KEEP (*(SORT(.dtors.*)))
166    KEEP (*(.dtors))
167  } > RAM
168  .got           : { *(.got.plt) *(.got) } > RAM
169  .dynamic       : { *(.dynamic) } > RAM
170  /* We want the small data sections together, so single-instruction offsets
171     can access them all, and initialized data all before uninitialized, so
172     we can shorten the on-disk segment size.  */
173  .sdata     :
174  {
175    *(.sdata)
176    *(.sdata.*)
177    *(.gnu.linkonce.s.*)
178  } > RAM
179  .arm_data :
180  { 
181  _edata = .;
182  __bss_start = .;
183  __bss_start__ = .;
184  } > RAM
185  .sbss      :
186  {
187    *(.dynsbss)
188    *(.sbss)
189    *(.sbss.*)
190    *(.scommon)
191  } > RAM
192  .bss       :
193  {
194   *(.dynbss)
195   *(.bss)
196   *(.bss.*)
197   *(COMMON)
198   /* Align here to ensure that the .bss section occupies space up to
199      _end.  Align after .bss to ensure correct alignment even if the
200      .bss section disappears because there are no input sections.  */
201   . = ALIGN(32 / 8);
202  } > RAM
203  . = ALIGN(32 / 8);
204  .arm_end :
205  {
206  _end = .;
207  _bss_end__ = . ;
208  __bss_end__ = . ;
209  __end__ = . ;
210  } > RAM
211  /* Stabs debugging sections.  */
212  .stab 0 : { *(.stab) }
213  .stabstr 0 : { *(.stabstr) }
214  .stab.excl 0 : { *(.stab.excl) }
215  .stab.exclstr 0 : { *(.stab.exclstr) }
216  .stab.index 0 : { *(.stab.index) }
217  .stab.indexstr 0 : { *(.stab.indexstr) }
218  .comment 0 : { *(.comment) }
219  /* DWARF debug sections.
220     Symbols in the DWARF debugging sections are relative to the beginning
221     of the section so we begin them at 0.  */
222  /* DWARF 1 */
223  .debug          0 : { *(.debug) }
224  .line           0 : { *(.line) }
225  /* GNU DWARF 1 extensions */
226  .debug_srcinfo  0 : { *(.debug_srcinfo) }
227  .debug_sfnames  0 : { *(.debug_sfnames) }
228  /* DWARF 1.1 and DWARF 2 */
229  .debug_aranges  0 : { *(.debug_aranges) }
230  .debug_pubnames 0 : { *(.debug_pubnames) }
231  /* DWARF 2 */
232  .debug_info     0 : { *(.debug_info) }
233  .debug_abbrev   0 : { *(.debug_abbrev) }
234  .debug_line     0 : { *(.debug_line) }
235  .debug_frame    0 : { *(.debug_frame) }
236  .debug_str      0 : { *(.debug_str) }
237  .debug_loc      0 : { *(.debug_loc) }
238  .debug_macinfo  0 : { *(.debug_macinfo) }
239  /* SGI/MIPS DWARF 2 extensions */
240  .debug_weaknames 0 : { *(.debug_weaknames) }
241  .debug_funcnames 0 : { *(.debug_funcnames) }
242  .debug_typenames 0 : { *(.debug_typenames) }
243  .debug_varnames  0 : { *(.debug_varnames) }
244  /*.stack 0x80000 : { _stack = .; *(.stack) }*/
245  /* These must appear regardless of  .  */
246}
247
248
249
250
Note: See TracBrowser for help on using the repository browser.