source: rtems/c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds @ 9c1133e

4.104.114.84.95
Last change on this file since 9c1133e was 9c1133e, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2003 at 7:57:14 PM

mkChangeLogList [-n]

  • Property mode set to 100644
File size: 4.0 KB
Line 
1/*
2 *  Linker script for Mongoose-V prototyping board.
3 *  See README for address map details.
4 *
5 *  $Id$
6 */
7
8/*    . = 0x80020000; */
9
10/*
11 * Declare some sizes.
12 */
13
14_RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000;
15_RamSize = DEFINED(_RamSize) ? _RamSize : 32M;
16HeapSize = DEFINED(HeapSize) ? HeapSize : 0x40000;
17_StackSize = DEFINED(_StackSize) ? _StackSize : 0x4000;
18ClockRate = DEFINED(ClockRate) ? ClockRate : 12000000;
19
20
21
22MEMORY
23{
24   ram      : ORIGIN = 0x80020000, LENGTH = 4M
25}
26
27SECTIONS
28{
29    .text :
30    {
31       _ftext = . ;
32
33      */start.o(.text)
34
35      *(.text)
36      *(.text.*)
37      *(.gnu.linkonce.t*)
38      *(.mips16.fn.*)
39      *(.mips16.call.*)
40      PROVIDE (__runtime_reloc_start = .);
41      *(.rel.sdata)
42      *(.rel.dyn)
43      PROVIDE (__runtime_reloc_stop = .);
44
45      /*
46       * Special FreeBSD sysctl sections.
47       */
48      . = ALIGN (16);
49      __start_set_sysctl_set = .;
50      *(set_sysctl_*);
51      __stop_set_sysctl_set = ABSOLUTE(.);
52      *(set_domain_*);
53      *(set_pseudo_*);
54
55      *(.gcc_except_table)
56      *(.eh_frame_hdr)
57      *(.eh_frame)
58    } >ram 
59
60  .init :
61  {
62     KEEP(*(.init))
63
64  } > ram
65
66  .fini :
67  {
68     KEEP(*(.fini))
69
70  }  > ram
71
72
73  .ctors    :
74  {
75    /* gcc uses crtbegin.o to find the start of
76       the constructors, so we make sure it is
77       first.  Because this is a wildcard, it
78       doesn't matter if the user does not
79       actually link against crtbegin.o; the
80       linker won't look for a file to match a
81       wildcard.  The wildcard also means that it
82       doesn't matter which directory crtbegin.o
83       is in.  */
84
85    KEEP (*crtbegin.o(.ctors))
86
87    /* We don't want to include the .ctor section from
88       from the crtend.o file until after the sorted ctors.
89       The .ctor section from the crtend file contains the
90       end of ctors marker and it must be last */
91
92    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
93    KEEP (*(SORT(.ctors.*)))
94    KEEP (*(.ctors))
95  } >ram 
96
97  .dtors    :
98  {
99    KEEP (*crtbegin.o(.dtors))
100    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
101    KEEP (*(SORT(.dtors.*)))
102    KEEP (*(.dtors))
103
104    etext  =  .;
105    _etext  =  .;
106  } >ram 
107
108
109
110  .rdata :
111  {
112    *(.rdata)
113    *(.rodata)
114    *(.rodata.*)
115    *(.gnu.linkonce.r*)
116  } >ram 
117
118  .data :
119  {
120    _fdata = ALIGN(16);
121
122    *(.data)
123    *(.data.*)
124    *(.gnu.linkonce.d*)
125  } >ram 
126
127  .jcr :
128  {
129    . = ALIGN(8);
130    KEEP (*(.jcr))
131
132    _gp = ALIGN(16) + 0x7440;
133    __global = _gp;
134  } >ram
135
136  .lit8 :
137  {
138    *(.lit8)
139  } >ram 
140
141  .lit4 :
142  {
143    *(.lit4)
144  } >ram   
145
146  .sdata :   
147  {
148    *(.sdata)
149    *(.sdata.*)
150    *(.gnu.linkonce.s*)
151  } >ram 
152
153  .sbss :
154  {
155   edata  =  .;
156   _edata  =  .;
157   _fbss = .;
158    *(.sbss)
159    *(.scommon)
160  } >ram   
161
162
163  .bss :
164  {
165    _bss_start = . ;
166    *(.bss)
167    *(.reginfo)
168    *(COMMON)
169    . = ALIGN (64);
170    _stack_limit = .;
171    . += _StackSize;
172    __stack = .;
173    _stack_init = .;
174    _clear_end = .;
175    HeapBase = .;
176    . += HeapSize;    /* reserve some memory for heap */
177    WorkspaceBase = .;
178    end = .;
179    _end = .;
180  } >ram   
181
182
183/*
184** DWARF debug sections.
185** Symbols in the DWARF debugging sections are relative to
186** the beginning of the section so we begin them at 0. 
187*/
188
189  /* DWARF 1 */
190  .debug          0 : { *(.debug) }
191  .line           0 : { *(.line) }
192
193  /* GNU DWARF 1 extensions */
194  .debug_srcinfo  0 : { *(.debug_srcinfo) }
195  .debug_sfnames  0 : { *(.debug_sfnames) }
196
197  /* DWARF 1.1 and DWARF 2 */
198  .debug_aranges  0 : { *(.debug_aranges) }
199  .debug_pubnames 0 : { *(.debug_pubnames) }
200
201  /* DWARF 2 */
202  .debug_info     0 : { *(.debug_info) }   
203  .debug_abbrev   0 : { *(.debug_abbrev) } 
204  .debug_line     0 : { *(.debug_line) }   
205  .debug_frame    0 : { *(.debug_frame)}   
206  .debug_str      0 : { *(.debug_str) }     
207  .debug_loc      0 : { *(.debug_loc) }     
208  .debug_macinfo  0 : { *(.debug_macinfo) }
209
210  /* SGI/MIPS DWARF 2 extensions */
211  .debug_weaknames 0 : { *(.debug_weaknames) }
212  .debug_funcnames 0 : { *(.debug_funcnames) }
213  .debug_typenames 0 : { *(.debug_typenames) }
214  .debug_varnames  0 : { *(.debug_varnames) } 
215}
Note: See TracBrowser for help on using the repository browser.