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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [loader/] [v2_0/] [docs/] [i386.default.ld] - Blame information for rev 228

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

Line No. Rev Author Line
1 27 unneback
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
2
              "elf32-i386")
3
OUTPUT_ARCH(i386)
4
ENTRY(_start)
5
STARTUP(vectors.o)
6
ENTRY(_start)
7
INPUT(extras.o)
8
GROUP(libtarget.a libgcc.a)
9
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/local/tools/i686-pc-linux-gnu/H-i686-pc-linux-gnu/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/local/tools/i686-pc-linux-gnu/H-i686-pc-linux-gnu/i686-pc-linux-gnu/lib);
10
/* Do we need any of these for elf?
11
   __DYNAMIC = 0;    */
12
SECTIONS
13
{
14
  /* Read-only sections, merged into text segment: */
15
  . = 0 + SIZEOF_HEADERS;
16
  .hash          : { *(.hash)           }
17
  .dynsym        : { *(.dynsym)         }
18
  .dynstr        : { *(.dynstr)         }
19
  .gnu.version   : { *(.gnu.version)    }
20
  .gnu.version_d   : { *(.gnu.version_d)        }
21
  .gnu.version_r   : { *(.gnu.version_r)        }
22
  .rel.init      : { *(.rel.init)       }
23
  .rela.init     : { *(.rela.init)      }
24
  .rel.text      :
25
    {
26
      *(.rel.text)
27
      *(.rel.text.*)
28
      *(.rel.gnu.linkonce.t*)
29
    }
30
  .rela.text     :
31
    {
32
      *(.rela.text)
33
      *(.rela.text.*)
34
      *(.rela.gnu.linkonce.t*)
35
    }
36
  .rel.fini      : { *(.rel.fini)       }
37
  .rela.fini     : { *(.rela.fini)      }
38
  .rel.rodata    :
39
    {
40
      *(.rel.rodata)
41
      *(.rel.rodata.*)
42
      *(.rel.gnu.linkonce.r*)
43
    }
44
  .rela.rodata   :
45
    {
46
      *(.rela.rodata)
47
      *(.rela.rodata.*)
48
      *(.rela.gnu.linkonce.r*)
49
    }
50
  .rel.data      :
51
    {
52
      *(.rel.data)
53
      *(.rel.data.*)
54
      *(.rel.gnu.linkonce.d*)
55
    }
56
  .rela.data     :
57
    {
58
      *(.rela.data)
59
      *(.rela.data.*)
60
      *(.rela.gnu.linkonce.d*)
61
    }
62
  .rel.ctors     : { *(.rel.ctors)      }
63
  .rela.ctors    : { *(.rela.ctors)     }
64
  .rel.dtors     : { *(.rel.dtors)      }
65
  .rela.dtors    : { *(.rela.dtors)     }
66
  .rel.got       : { *(.rel.got)                }
67
  .rela.got      : { *(.rela.got)               }
68
  .rel.sdata     :
69
    {
70
      *(.rel.sdata)
71
      *(.rel.sdata.*)
72
      *(.rel.gnu.linkonce.s*)
73
    }
74
  .rela.sdata     :
75
    {
76
      *(.rela.sdata)
77
      *(.rela.sdata.*)
78
      *(.rela.gnu.linkonce.s*)
79
    }
80
  .rel.sbss      : { *(.rel.sbss)               }
81
  .rela.sbss     : { *(.rela.sbss)      }
82
  .rel.bss       : { *(.rel.bss)                }
83
  .rela.bss      : { *(.rela.bss)               }
84
  .rel.plt       : { *(.rel.plt)                }
85
  .rela.plt      : { *(.rela.plt)               }
86
  .init          :
87
  {
88
    KEEP (*(.init))
89
  } =0x9090
90
  .plt      : { *(.plt) }
91
  .text      :
92
  {
93
    _stext = .;
94
    *(.text)
95
    *(.text.*)
96
    *(.stub)
97
    /* .gnu.warning sections are handled specially by elf32.em.  */
98
    *(.gnu.warning)
99
    *(.gnu.linkonce.t*)
100
  } =0x9090
101
  _etext = .;
102
  PROVIDE (etext = .);
103
  .fini      :
104
  {
105
    KEEP (*(.fini))
106
  } =0x9090
107
  .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) }
108
  .rodata1   : { *(.rodata1) }
109
  /* Adjust the address for the data segment.  We want to adjust up to
110
     the same address within the page on the next page up.  */
111
  . = ALIGN(0x1000) + (. & (0x1000 - 1));
112
  .data    :
113
  {
114
    *(.data)
115
    *(.data.*)
116
    *(.gnu.linkonce.d*)
117
    SORT(CONSTRUCTORS)
118
  }
119
  .data1   : { *(.data1) }
120
  .eh_frame : { KEEP (*(.eh_frame)) }
121
  .gcc_except_table : { *(.gcc_except_table) }
122
  .ctors   :
123
  {
124
    /* gcc uses crtbegin.o to find the start of
125
       the constructors, so we make sure it is
126
       first.  Because this is a wildcard, it
127
       doesn't matter if the user does not
128
       actually link against crtbegin.o; the
129
       linker won't look for a file to match a
130
       wildcard.  The wildcard also means that it
131
       doesn't matter which directory crtbegin.o
132
       is in.  */
133
    __CTOR_LIST__ = ABSOLUTE(.);
134
    KEEP (*crtbegin.o(.ctors))
135
    /* We don't want to include the .ctor section from
136
       from the crtend.o file until after the sorted ctors.
137
       The .ctor section from the crtend file contains the
138
       end of ctors marker and it must be last */
139
    KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
140
    KEEP (*(SORT(.ctors.*)))
141
    KEEP (*(.ctors))
142
    __CTOR_END__ = ABSOLUTE(.);
143
  }
144
   .dtors         :
145
  {
146
    __DTOR_LIST__ = ABSOLUTE(.);
147
    KEEP (*crtbegin.o(.dtors))
148
    KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
149
    KEEP (*(SORT(.dtors.*)))
150
    KEEP (*(.dtors))
151
    __DTOR_END__ = ABSOLUTE(.);
152
  }
153
  .got            : { *(.got.plt) *(.got) }
154
  .dynamic       : { *(.dynamic) }
155
  /* We want the small data sections together, so single-instruction offsets
156
     can access them all, and initialized data all before uninitialized, so
157
     we can shorten the on-disk segment size.  */
158
  .sdata     :
159
  {
160
    *(.sdata)
161
    *(.sdata.*)
162
    *(.gnu.linkonce.s.*)
163
  }
164
  _edata = .;
165
  PROVIDE (edata = .);
166
  __bss_start = .;
167
  .sbss      :
168
  {
169
    *(.dynsbss)
170
    *(.sbss)
171
    *(.sbss.*)
172
    *(.scommon)
173
  }
174
  .bss       :
175
  {
176
   *(.dynbss)
177
   *(.bss)
178
   *(.bss.*)
179
   *(COMMON)
180
   /* Align here to ensure that the .bss section occupies space up to
181
      _end.  Align after .bss to ensure correct alignment even if the
182
      .bss section disappears because there are no input sections.  */
183
   . = ALIGN(32 / 8);
184
  }
185
  . = ALIGN(32 / 8);
186
  __bss_end = .;
187
  _end = .;
188
  __heap1   = ALIGN (0x10);
189
  PROVIDE (end = .);
190
  /* Stabs debugging sections.  */
191
  .stab 0 : { *(.stab) }
192
  .stabstr 0 : { *(.stabstr) }
193
  .stab.excl 0 : { *(.stab.excl) }
194
  .stab.exclstr 0 : { *(.stab.exclstr) }
195
  .stab.index 0 : { *(.stab.index) }
196
  .stab.indexstr 0 : { *(.stab.indexstr) }
197
  .comment 0 : { *(.comment) }
198
  /* DWARF debug sections.
199
     Symbols in the DWARF debugging sections are relative to the beginning
200
     of the section so we begin them at 0.  */
201
  /* DWARF 1 */
202
  .debug          0 : { *(.debug) }
203
  .line           0 : { *(.line) }
204
  /* GNU DWARF 1 extensions */
205
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
206
  .debug_sfnames  0 : { *(.debug_sfnames) }
207
  /* DWARF 1.1 and DWARF 2 */
208
  .debug_aranges  0 : { *(.debug_aranges) }
209
  .debug_pubnames 0 : { *(.debug_pubnames) }
210
  /* DWARF 2 */
211
  .debug_info     0 : { *(.debug_info) }
212
  .debug_abbrev   0 : { *(.debug_abbrev) }
213
  .debug_line     0 : { *(.debug_line) }
214
  .debug_frame    0 : { *(.debug_frame) }
215
  .debug_str      0 : { *(.debug_str) }
216
  .debug_loc      0 : { *(.debug_loc) }
217
  .debug_macinfo  0 : { *(.debug_macinfo) }
218
  /* SGI/MIPS DWARF 2 extensions */
219
  .debug_weaknames 0 : { *(.debug_weaknames) }
220
  .debug_funcnames 0 : { *(.debug_funcnames) }
221
  .debug_typenames 0 : { *(.debug_typenames) }
222
  .debug_varnames  0 : { *(.debug_varnames) }
223
  /* These must appear regardless of  .  */
224
}

powered by: WebSVN 2.1.0

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