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

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

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