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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [microblaze/] [xilinx.ld] - Blame information for rev 258

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* Default linker script, for normal executables */
2
OUTPUT_FORMAT("elf32-microblaze", "",
3
              "")
4
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
5
/*SEARCH_DIR("/proj/fv1/gnu_builds/head/mb/release/lin/mb/microblaze-xilinx-elf/lib");*/
6
ENTRY(_start)
7
_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
8
_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
9
_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
10
SECTIONS
11
{
12
  .vectors.reset 0x0 : { KEEP (*(.vectors.reset)) } = 0
13
  .vectors.sw_exception 0x8 : { KEEP (*(.vectors.sw_exception)) } = 0
14
  .vectors.interrupt 0x10 : { KEEP (*(.vectors.interrupt)) } = 0
15
  .vectors.debug_sw_break 0x18 : { KEEP (*(.vectors.debug_sw_break)) } = 0
16
  .vectors.hw_exception 0x20 : { KEEP (*(.vectors.hw_exception)) } = 0
17
  . = _TEXT_START_ADDR;
18
   _ftext  =  .;
19
  .text : {
20
    *(.text)
21
    *(.text.*)
22
    *(.gnu.linkonce.t.*)
23
  }
24
   _etext  =  .;
25
  .init : { KEEP (*(.init))     } =0
26
  .fini : { KEEP (*(.fini))     } =0
27
  PROVIDE (__CTOR_LIST__ = .);
28
  PROVIDE (___CTOR_LIST__ = .);
29
  .ctors   :
30
  {
31
    /* gcc uses crtbegin.o to find the start of
32
       the constructors, so we make sure it is
33
       first.  Because this is a wildcard, it
34
       doesn't matter if the user does not
35
       actually link against crtbegin.o; the
36
       linker won't look for a file to match a
37
       wildcard.  The wildcard also means that it
38
       doesn't matter which directory crtbegin.o
39
       is in.  */
40
    KEEP (*crtbegin.o(.ctors))
41
    /* We don't want to include the .ctor section from
42
       from the crtend.o file until after the sorted ctors.
43
       The .ctor section from the crtend file contains the
44
       end of ctors marker and it must be last */
45
    KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
46
    KEEP (*(SORT(.ctors.*)))
47
    KEEP (*(.ctors))
48
  }
49
  PROVIDE (__CTOR_END__ = .);
50
  PROVIDE (___CTOR_END__ = .);
51
  PROVIDE (__DTOR_LIST__ = .);
52
  PROVIDE (___DTOR_LIST__ = .);
53
   .dtors         :
54
  {
55
    KEEP (*crtbegin.o(.dtors))
56
    KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
57
    KEEP (*(SORT(.dtors.*)))
58
    KEEP (*(.dtors))
59
  }
60
  PROVIDE (__DTOR_END__ = .);
61
  PROVIDE (___DTOR_END__ = .);
62
   . = ALIGN(4);
63
    _frodata = . ;
64
  .rodata : {
65
    *(.rodata)
66
    *(.rodata.*)
67
    *(.gnu.linkonce.r.*)
68
    CONSTRUCTORS; /* Is this needed? */
69
  }
70
   _erodata = .;
71
  /* Alignments by 8 to ensure that _SDA2_BASE_ on a word boundary */
72
  /* Note that .sdata2 and .sbss2 must be contiguous */
73
  . = ALIGN(8);
74
   _ssrw = .;
75
  .sdata2 : {
76
    *(.sdata2)
77
    *(.sdata2.*)
78
    *(.gnu.linkonce.s2.*)
79
  }
80
  . = ALIGN(4);
81
  .sbss2 : {
82
    PROVIDE (__sbss2_start = .);
83
    *(.sbss2)
84
    *(.sbss2.*)
85
    *(.gnu.linkonce.sb2.*)
86
    PROVIDE (__sbss2_end = .);
87
  }
88
  . = ALIGN(8);
89
   _essrw = .;
90
   _ssrw_size = _essrw - _ssrw;
91
   PROVIDE (_SDA2_BASE_ = _ssrw + (_ssrw_size / 2 ));
92
   . = ALIGN(4);
93
   _fdata = .;
94
  .data : {
95
    *(.data)
96
    *(.gnu.linkonce.d.*)
97
    CONSTRUCTORS; /* Is this needed? */
98
  }
99
   _edata = . ;
100
   /* Added to handle pic code */
101
  .got : {
102
    *(.got)
103
  }
104
  .got1 : {
105
    *(.got1)
106
  }
107
  .got2 : {
108
    *(.got2)
109
  }
110
  /* Added by Sathya to handle C++ exceptions */
111
  .eh_frame : {
112
    *(.eh_frame)
113
  }
114
  .jcr : {
115
    *(.jcr)
116
  }
117
  .gcc_except_table : {
118
    *(.gcc_except_table)
119
  }
120
  /* Alignments by 8 to ensure that _SDA_BASE_ on a word boundary */
121
  /* Note that .sdata and .sbss must be contiguous */
122
  . = ALIGN(8);
123
   _ssro = .;
124
  .sdata : {
125
    *(.sdata)
126
    *(.sdata.*)
127
    *(.gnu.linkonce.s.*)
128
  }
129
  . = ALIGN(4);
130
  .sbss : {
131
    PROVIDE (__sbss_start = .);
132
    *(.sbss)
133
    *(.sbss.*)
134
    *(.gnu.linkonce.sb.*)
135
    PROVIDE (__sbss_end = .);
136
  }
137
  . = ALIGN(8);
138
   _essro = .;
139
   _ssro_size = _essro - _ssro;
140
  PROVIDE (_SDA_BASE_ = _ssro + (_ssro_size / 2 ));
141
  . = ALIGN(4);
142
   _fbss = .;
143
  .bss : {
144
    PROVIDE (__bss_start = .);
145
    *(.bss)
146
    *(.bss.*)
147
    *(.gnu.linkonce.b.*)
148
    *(COMMON)
149
    . = ALIGN(4);
150
    PROVIDE (__bss_end = .);
151
  }
152
 
153
  . = ALIGN(4);
154
  .heap : {
155
     _heap = .;
156
     _heap_start = .;
157
     . += _HEAP_SIZE;
158
     _heap_end = .;
159
  }
160
 
161
  . = ALIGN(4);
162
  .stack : {
163
     _stack_end = .;
164
     . += _STACK_SIZE;
165
     . = ALIGN(8);
166
     _stack = .;
167
     _end = .;
168
  }
169
 
170
  .tdata : {
171
    *(.tdata)
172
    *(.tdata.*)
173
    *(.gnu.linkonce.td.*)
174
  }
175
  .tbss : {
176
    *(.tbss)
177
    *(.tbss.*)
178
    *(.gnu.linkonce.tb.*)
179
  }
180
}

powered by: WebSVN 2.1.0

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