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

4.104.114.84.95
Last change on this file since b45c7f2 was b45c7f2, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 1, 2002 at 9:52:29 PM

2002-11-01 Joel Sherrill <joel@…>

  • startup/gdb-support.c, startup/linkcmds: Removed warnings.
  • Property mode set to 100644
File size: 3.7 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 : 0x1000;
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      *(.init)
33       eprol  =  .;
34      *(.text)
35      *(.text.*)
36      *(.eh_frame)
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      *(.fini)
45      *(.gcc_except_table)
46    } >ram 
47
48  .ctors    :
49  {
50    /* gcc uses crtbegin.o to find the start of
51       the constructors, so we make sure it is
52       first.  Because this is a wildcard, it
53       doesn't matter if the user does not
54       actually link against crtbegin.o; the
55       linker won't look for a file to match a
56       wildcard.  The wildcard also means that it
57       doesn't matter which directory crtbegin.o
58       is in.  */
59
60    KEEP (*crtbegin.o(.ctors))
61
62    /* We don't want to include the .ctor section from
63       from the crtend.o file until after the sorted ctors.
64       The .ctor section from the crtend file contains the
65       end of ctors marker and it must be last */
66
67    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
68    KEEP (*(SORT(.ctors.*)))
69    KEEP (*(.ctors))
70  } >ram 
71
72  .dtors    :
73  {
74    KEEP (*crtbegin.o(.dtors))
75    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
76    KEEP (*(SORT(.dtors.*)))
77    KEEP (*(.dtors))
78
79    etext  =  .;
80    _etext  =  .;
81  } >ram 
82
83
84
85  .rdata :
86  {
87    *(.rdata)
88    *(.rodata)
89    *(.rodata.*)
90    *(.gnu.linkonce.r*)
91  } >ram 
92
93  .data :
94  {
95    _fdata = ALIGN(16);
96
97    *(.data)
98    *(.data.*)
99    *(.gnu.linkonce.d*)
100  } >ram 
101
102
103  .lit8 :
104  {
105    . = ALIGN(8);
106
107    _gp = . + 0x8000;
108    __global = _gp;
109    *(.lit8)
110  } >ram 
111
112  .lit4 :
113  {
114    *(.lit4)
115  } >ram   
116
117  .sdata :   
118  {
119    *(.sdata)
120    *(.sdata.*)
121    *(.gnu.linkonce.s*)
122  } >ram 
123
124  .sbss :
125  {
126   edata  =  .;
127   _edata  =  .;
128   _fbss = .;
129    *(.sbss)
130    *(.scommon)
131  } >ram   
132
133
134  .bss :
135  {
136    _bss_start = . ;
137    *(.bss)
138    *(.reginfo)
139    *(COMMON)
140    . = ALIGN (64);
141    _stack_limit = .;
142    . += _StackSize;
143    __stack = .;
144    _stack_init = .;
145    _clear_end = .;
146    HeapBase = .;
147    . += HeapSize;    /* reserve some memory for heap */
148    WorkspaceBase = .;
149    end = .;
150    _end = .;
151  } >ram   
152
153
154/*
155** DWARF debug sections.
156** Symbols in the DWARF debugging sections are relative to
157** the beginning of the section so we begin them at 0. 
158*/
159
160  /* DWARF 1 */
161  .debug          0 : { *(.debug) }
162  .line           0 : { *(.line) }
163
164  /* GNU DWARF 1 extensions */
165  .debug_srcinfo  0 : { *(.debug_srcinfo) }
166  .debug_sfnames  0 : { *(.debug_sfnames) }
167
168  /* DWARF 1.1 and DWARF 2 */
169  .debug_aranges  0 : { *(.debug_aranges) }
170  .debug_pubnames 0 : { *(.debug_pubnames) }
171
172  /* DWARF 2 */
173  .debug_info     0 : { *(.debug_info) }   
174  .debug_abbrev   0 : { *(.debug_abbrev) } 
175  .debug_line     0 : { *(.debug_line) }   
176  .debug_frame    0 : { *(.debug_frame)}   
177  .debug_str      0 : { *(.debug_str) }     
178  .debug_loc      0 : { *(.debug_loc) }     
179  .debug_macinfo  0 : { *(.debug_macinfo) }
180
181  /* SGI/MIPS DWARF 2 extensions */
182  .debug_weaknames 0 : { *(.debug_weaknames) }
183  .debug_funcnames 0 : { *(.debug_funcnames) }
184  .debug_typenames 0 : { *(.debug_typenames) }
185  .debug_varnames  0 : { *(.debug_varnames) } 
186}
Note: See TracBrowser for help on using the repository browser.