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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [mcore/] [elf-cmb.ld] - Blame information for rev 868

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

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

powered by: WebSVN 2.1.0

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