source: rtems/c/src/lib/libbsp/arm/vegaplus/startup/linkcmds @ 9c1133e

4.104.114.84.95
Last change on this file since 9c1133e was 7b0c547a, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/03 at 19:53:27

2003-01-20 Joel Sherrill <joel@…>

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