OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [mep/] [simple.ld] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/******************************************************************************
2
begin-header
3
 
4
  DO NOT EDIT. THIS FILE IS MACHINE-GENERATED
5
  FROM THE TEMPLATE FILE gmap_default.ld.
6
  ALL EDITS WILL BE ERASED WITH NEXT MeP-Integrator RUN.
7
 
8
  Custom linker script for the MeP Module simple.
9
end-header
10
*******************************************************************************/
11
 
12
OUTPUT_FORMAT("elf32-mep", "elf32-mep",
13
              "elf32-mep")
14
OUTPUT_ARCH(mep)
15
ENTRY(_reset)
16
 
17
MEMORY
18
{
19
/* begin-memory */
20
  VEC   (r) : ORIGIN = 0x00000000, LENGTH = 0x000000b8
21
  VEC_WARM      (w) : ORIGIN = 0x00800000, LENGTH = 0x000000b8
22
  HWINIT        (r) : ORIGIN = 0x000000b8, LENGTH = 0x00000148
23
  ROM   (r) : ORIGIN = 0x00000200, LENGTH = 0x001ffe00
24
  RAM1  (w) : ORIGIN = 0x008000b8, LENGTH = 0x007fff48
25
/*RAM2  (w) : ORIGIN = 0x80800000, LENGTH = 0x00800000 */
26
/* end-memory */
27
}
28
 
29
SECTIONS
30
{
31
  /* Sections to be placed in the vec area.  */
32
  .vec : { *(.vec) } >VEC /* VEC-section */
33
 
34
  /* Sections to be placed in the HWINIT area.  */
35
  .hwinit : { *(.hwinit) } >HWINIT /* HWINIT-section */
36
 
37
  /* Sections to be placed in the ROM area.  */
38
  .gnu.version   : { *(.gnu.version)    } >ROM /* ROM-section */
39
  .gnu.version_d : { *(.gnu.version_d)  } >ROM /* ROM-section */
40
  .gnu.version_r : { *(.gnu.version_r)  } >ROM /* ROM-section */
41
 
42
  /* Sections to be placed in the romdata.s area.  */
43
  .srodata :
44
  {
45
    __sdabase = . + 0x8000;
46
    *(.srodata) *(.srodata.*) *(.gnu.linkonce.srd.*)
47
  } >RAM1 /* DATA-section */
48
 
49
  /* Sections to be placed in the data.s area.  */
50
  .sdata     :
51
  {
52
    *(.sdata)
53
    *(.sdata.*)
54
    *(.gnu.linkonce.s.*)
55
  } >RAM1 /* DATA-section */
56
  .sbss      :
57
  {
58
    PROVIDE (__sbss_start = .);
59
    PROVIDE (___sbss_start = .);
60
    *(.dynsbss)
61
    *(.sbss)
62
    *(.sbss.*)
63
    *(.gnu.linkonce.sb.*)
64
    *(.scommon)
65
    PROVIDE (__sbss_end = .);
66
    PROVIDE (___sbss_end = .);
67
    /* Assert maximum size */
68
    __assert_tiny_size = ASSERT ((. < __sdabase) || ((. - __sdabase) <= 0x8000),
69
                                 "tiny section overflow");
70
  } >RAM1 /* DATA-section */
71
 
72
  /* Sections to be placed in the data.m area.  */
73
  .data    :
74
  {
75
    __data_start = . ;
76
    *(.data)
77
    *(.data.*)
78
    *(.gnu.linkonce.d.*)
79
    SORT(CONSTRUCTORS)
80
  } >RAM1 /* DATA-section */
81
  .data1   : { *(.data1) } >RAM1 /* DATA-section */
82
  .eh_frame : { KEEP (*(.eh_frame))} >RAM1 /* DATA-section */
83
  .gcc_except_table : { *(.gcc_except_table) *(.gcc_except_table.*) } >RAM1 /* DATA-section */
84
  .dynamic       : { *(.dynamic) } >RAM1 /* DATA-section */
85
  .ctors   :
86
  {
87
    /* gcc uses crtbegin.o to find the start of
88
       the constructors, so we make sure it is
89
       first.  Because this is a wildcard, it
90
       doesn't matter if the user does not
91
       actually link against crtbegin.o; the
92
       linker won't look for a file to match a
93
       wildcard.  The wildcard also means that it
94
       doesn't matter which directory crtbegin.o
95
       is in.  */
96
    KEEP (*crtbegin.o(.ctors))
97
    /* We don't want to include the .ctor section from
98
       from the crtend.o file until after the sorted ctors.
99
       The .ctor section from the crtend file contains the
100
       end of ctors marker and it must be last */
101
    KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
102
    KEEP (*(SORT(.ctors.*)))
103
    KEEP (*(.ctors))
104
  } >RAM1 /* DATA-section */
105
  .dtors         :
106
  {
107
    KEEP (*crtbegin.o(.dtors))
108
    KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
109
    KEEP (*(SORT(.dtors.*)))
110
    KEEP (*(.dtors))
111
  } >RAM1 /* DATA-section */
112
  .jcr :
113
  {
114
    . = ALIGN(4);
115
    *(.jcr)
116
  } >RAM1 /* DATA-section */
117
  .got :
118
  {
119
    *(.got.plt) *(.got)
120
    _edata = .;
121
    PROVIDE (edata = .);
122
  } >RAM1 /* DATA-section */
123
  .based :
124
  {
125
    __tpbase = .;
126
    *(.based) *(.based.*) *(.gnu.linkonce.based.*)
127
    /* Assert maximum size */
128
    __assert_based_size = ASSERT ((. - __tpbase) <= 0x80,
129
                                  "based section overflow");
130
  } >RAM1 /* DATA-section */
131
 
132
  .bss       :
133
  {
134
    __bss_start = .;
135
    *(.dynbss)
136
    *(.bss)
137
    *(.bss.*)
138
    *(.gnu.linkonce.b.*)
139
    *(COMMON)
140
    /* Align here to ensure that the .bss section occupies space up to
141
      _end.  Align after .bss to ensure correct alignment even if the
142
      .bss section disappears because there are no input sections.  */
143
    . = ALIGN(32 / 8);
144
    _end = .;
145
    PROVIDE (end = .);
146
  } >RAM1 /* DATA-section */
147
 
148
  /* Sections to be placed in the code.m area.  */
149
  .init          :
150
  {
151
    KEEP (*(.init))
152
  } >RAM1 /* CODE-section */
153
  .plt      : { *(.plt) } >RAM1 /* DATA-section */
154
  .text      :
155
  {
156
    *(.text)
157
    *(.text.*)
158
    *(.stub)
159
    /* .gnu.warning sections are handled specially by elf32.em.  */
160
    *(.gnu.warning)
161
    *(.gnu.linkonce.t.*)
162
  } >RAM1 /* CODE-section */ =0
163
  .vtext ALIGN(8)    :
164
  {
165
    *(.vtext) *(.vtext.*) *(.gnu.linkonce.v.*)
166
  } >RAM1 /* CODE-section */
167
  .fini      :
168
  {
169
    KEEP (*(.fini))
170
    PROVIDE (__etext = .);
171
    PROVIDE (_etext = .);
172
    PROVIDE (etext = .);
173
  } >RAM1 /* CODE-section */ =0
174
 
175
  /* Sections to be placed in the romdata.m area.  */
176
  .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } >RAM1 /* DATA-section */
177
  .rodata1   : { *(.rodata1) } >RAM1 /* DATA-section */
178
 
179
  /* Sections to be placed in the code.l area.  */
180
  .ftext : {  *(.ftext) *(.ftext.*) *(.gnu.linkonce.ft.*) } >RAM1 /* CODE-section */
181
  .vftext ALIGN(8)    :
182
  {
183
    *(.vftext) *(.vftext.*) *(.gnu.linkonce.vf.*)
184
  } >RAM1 /* CODE-section */
185
 
186
  /* Sections to be placed in the romdata.l area.  */
187
  .frodata :
188
  {
189
    *(.frodata) *(.frodata.*) *(.gnu.linkonce.frd.*)
190
    __assert_near_size = ASSERT (. <= 0x1000000, "near section overflow");
191
  } >RAM1 /* DATA-section */
192
 
193
  /* Sections to be placed in the data.l area.  */
194
  .far : { *(.far) *(.far.*) *(.gnu.linkonce.far.*) } >RAM1 /* DATA-section */
195
  .farbss :
196
  { PROVIDE (__farbss_start = .);
197
    *(.farbss) *(.farbss.*)
198
    PROVIDE (__farbss_end = .);
199
  } >RAM1 /* DATA-section */
200
 
201
  /* END-mep-sections */
202
 
203
  .vec_warm :
204
  {
205
    /* vec_warm is a place for the startup code to write the interrupt
206
       vectors.  Allow 0xb8 bytes of space aligned on a 4 byte boundary.  */
207
    . = ALIGN(4);
208
    vec_warm = .;
209
    . += 0xb8;
210
  } >VEC_WARM
211
 
212
  /* begin-stack-table */
213
  __stack1 = (__stack - (0 *  (__stack_size / 2)) + 15) / 16 * 16;
214
  __stack2 = (__stack - (1 *  (__stack_size / 2)) + 15) / 16 * 16;
215
 
216
  .rostacktab :
217
  {
218
    /* Emit a table describing the location of the different stacks.  */
219
    . = ALIGN(4);
220
    __stack_table = .;
221
    LONG (__stack2);
222
    LONG (__stack1);
223
    LONG (__stack2);
224
    __stack_end = .;
225
  } >RAM1
226
  /* end-stack-table */
227
 
228
  /* begin-heap */
229
  /* End of DATA is 0x008000b8 + 0x007fff48. That's where the heap will end.  */
230
  __heap_end = 0x008000b8 + 0x007fff48 - 1;
231
  /* end-heap */
232
 
233
  /* Default stack size is 1M.  That's where the heap will start if there's
234
     room.  If there's not enough room, allocate half of the remaining space
235
     for stack and half for heap.  Align the heap on a 16 byte boundary.  */
236
  __stack_size = (__stack_end + 0x100000 <= __heap_end + 1
237
                  ? 0x100000
238
                  : ((__heap_end + 1 - __stack_end) / 2));
239
  __heap = (__stack_end + __stack_size + 15) / 16 * 16;
240
 
241
  /* Leave 16 bytes between the stack and the heap.  */
242
  __stack = __heap - 0x10;
243
 
244
  /* Stabs debugging sections.  */
245
  .stab 0 : { *(.stab) }
246
  .stabstr 0 : { *(.stabstr) }
247
  .stab.excl 0 : { *(.stab.excl) }
248
  .stab.exclstr 0 : { *(.stab.exclstr) }
249
  .stab.index 0 : { *(.stab.index) }
250
  .stab.indexstr 0 : { *(.stab.indexstr) }
251
  .comment 0 : { *(.comment) }
252
  /* DWARF debug sections.
253
     Symbols in the DWARF debugging sections are relative to the beginning
254
     of the section so we begin them at 0.  */
255
  /* DWARF 1 */
256
  .debug          0 : { *(.debug) }
257
  .line           0 : { *(.line) }
258
  /* GNU DWARF 1 extensions */
259
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
260
  .debug_sfnames  0 : { *(.debug_sfnames) }
261
  /* DWARF 1.1 and DWARF 2 */
262
  .debug_aranges  0 : { *(.debug_aranges) }
263
  .debug_pubnames 0 : { *(.debug_pubnames) }
264
  /* DWARF 2 */
265
  .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
266
  .debug_abbrev   0 : { *(.debug_abbrev) }
267
  .debug_line     0 : { *(.debug_line) }
268
  .debug_frame    0 : { *(.debug_frame) }
269
  .debug_str      0 : { *(.debug_str) }
270
  .debug_loc      0 : { *(.debug_loc) }
271
  .debug_macinfo  0 : { *(.debug_macinfo) }
272
  .debug_ranges   0 : { *(.debug_ranges) }
273
  /* SGI/MIPS DWARF 2 extensions */
274
  .debug_weaknames 0 : { *(.debug_weaknames) }
275
  .debug_funcnames 0 : { *(.debug_funcnames) }
276
  .debug_typenames 0 : { *(.debug_typenames) }
277
  .debug_varnames  0 : { *(.debug_varnames) }
278
  /* These must appear regardless of  .  */
279
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.