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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [spu.ld] - Blame information for rev 862

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

Line No. Rev Author Line
1 227 jeremybenn
/* Script for -z combreloc: combine and sort reloc sections */
2
OUTPUT_FORMAT("elf32-spu", "elf32-spu",
3
              "elf32-spu")
4
OUTPUT_ARCH(spu)
5
ENTRY(_start)
6
SEARCH_DIR("/usr/spu/lib");
7
/* Do we need any of these for elf?
8
   __DYNAMIC = 0;    */
9
SECTIONS
10
{
11
  /* Read-only sections, merged into text segment: */
12
  PROVIDE (__executable_start = 0); . = 0;
13
  .interrupt : { KEEP(*(.interrupt)) }
14
  .interp         : { *(.interp) }
15
  .hash           : { *(.hash) }
16
  .dynsym         : { *(.dynsym) }
17
  .dynstr         : { *(.dynstr) }
18
  .gnu.version    : { *(.gnu.version) }
19
  .gnu.version_d  : { *(.gnu.version_d) }
20
  .gnu.version_r  : { *(.gnu.version_r) }
21
  .rel.dyn        :
22
    {
23
      *(.rel.init)
24
      *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
25
      *(.rel.fini)
26
      *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
27
      *(.rel.data.rel.ro*)
28
      *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
29
      *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
30
      *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
31
      *(.rel.ctors)
32
      *(.rel.dtors)
33
      *(.rel.got)
34
      *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
35
    }
36
  .rela.dyn       :
37
    {
38
      *(.rela.init)
39
      *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
40
      *(.rela.fini)
41
      *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
42
      *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
43
      *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
44
      *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
45
      *(.rela.ctors)
46
      *(.rela.dtors)
47
      *(.rela.got)
48
      *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
49
    }
50
  .rel.plt        : { *(.rel.plt) }
51
  .rela.plt       : { *(.rela.plt) }
52
  .init           :
53
  {
54
    KEEP (*(.init))
55
  } =0
56
  .plt            : { *(.plt) }
57
  .text           :
58
  {
59
    *(EXCLUDE_FILE (foo.o bar.o baz.o grbx.o) .text .stub .text.* .gnu.linkonce.t.*)
60
    KEEP (*(.text.*personality*))
61
    *(.spu.elf)
62
    /* .gnu.warning sections are handled specially by elf32.em.  */
63
    *(.gnu.warning)
64
  } =0
65
  .fini           :
66
  {
67
    KEEP (*(.fini))
68
  } =0
69
  PROVIDE (__etext = .);
70
  PROVIDE (_etext = .);
71
  PROVIDE (etext = .);
72
  .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
73
  .rodata1        : { *(.rodata1) }
74
  .eh_frame_hdr : { *(.eh_frame_hdr) }
75
  .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
76
  .gcc_except_table   : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
77
  /* Adjust the address for the data segment.  We want to adjust up to
78
     the same address within the page on the next page up.  */
79
  . = ALIGN(0x80);
80
  /* Exception handling  */
81
  .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
82
  .gcc_except_table   : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
83
  /* Thread Local Storage sections  */
84
  .tdata          : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
85
  .tbss           : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
86
  /* Ensure the __preinit_array_start label is properly aligned.  We
87
     could instead move the label definition inside the section, but
88
     the linker would then create the section even if it turns out to
89
     be empty, which isn't pretty.  */
90
  . = ALIGN(16);
91
  PROVIDE (__preinit_array_start = .);
92
  .preinit_array     : { KEEP (*(.preinit_array)) }
93
  PROVIDE (__preinit_array_end = .);
94
  PROVIDE (__init_array_start = .);
95
  .init_array     : { KEEP (*(.init_array)) }
96
  PROVIDE (__init_array_end = .);
97
  PROVIDE (__fini_array_start = .);
98
  .fini_array     : { KEEP (*(.fini_array)) }
99
  PROVIDE (__fini_array_end = .);
100
  .ctors          :
101
  {
102
    /* gcc uses crtbegin.o to find the start of
103
       the constructors, so we make sure it is
104
       first.  Because this is a wildcard, it
105
       doesn't matter if the user does not
106
       actually link against crtbegin.o; the
107
       linker won't look for a file to match a
108
       wildcard.  The wildcard also means that it
109
       doesn't matter which directory crtbegin.o
110
       is in.  */
111
    KEEP (*crtbegin*.o(.ctors))
112
    /* We don't want to include the .ctor section from
113
       from the crtend.o file until after the sorted ctors.
114
       The .ctor section from the crtend file contains the
115
       end of ctors marker and it must be last */
116
    KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors))
117
    KEEP (*(SORT(.ctors.*)))
118
    KEEP (*(.ctors))
119
  }
120
  .dtors          :
121
  {
122
    KEEP (*crtbegin*.o(.dtors))
123
    KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors))
124
    KEEP (*(SORT(.dtors.*)))
125
    KEEP (*(.dtors))
126
  }
127
  .jcr            : { KEEP (*(.jcr)) }
128
  .data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }
129
  .dynamic        : { *(.dynamic) }
130
  .got            : { *(.got.plt) *(.got) }
131
  .data           :
132
  {
133
    *(.data .data.* .gnu.linkonce.d.*)
134
    KEEP (*(.gnu.linkonce.d.*personality*))
135
    SORT(CONSTRUCTORS)
136
  }
137
  .data1          : { *(.data1) }
138
  _edata = .;
139
  PROVIDE (edata = .);
140
  __bss_start = .;
141
  .bss            :
142
  {
143
   *(.dynbss)
144
   *(.bss .bss.* .gnu.linkonce.b.*)
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(16);
150
  }
151
  .toe ALIGN(128) : { *(.toe) } = 0
152
  . = ALIGN(16);
153
  OVERLAY :
154
    {
155
      .ovly0 { foo.o(.text) }
156
      .ovly1 { bar.o(.text) }
157
    }
158
  OVERLAY :
159
    {
160
      .ovly2 { baz.o(.text) }
161
      .ovly3 { grbx.o(.text) }
162
    }
163
  _end = .;
164
  PROVIDE (end = .);
165
  /* Stabs debugging sections.  */
166
  .stab          0 : { *(.stab) }
167
  .stabstr       0 : { *(.stabstr) }
168
  .stab.excl     0 : { *(.stab.excl) }
169
  .stab.exclstr  0 : { *(.stab.exclstr) }
170
  .stab.index    0 : { *(.stab.index) }
171
  .stab.indexstr 0 : { *(.stab.indexstr) }
172
  .comment       0 : { *(.comment) }
173
  /* DWARF debug sections.
174
     Symbols in the DWARF debugging sections are relative to the beginning
175
     of the section so we begin them at 0.  */
176
  /* DWARF 1 */
177
  .debug          0 : { *(.debug) }
178
  .line           0 : { *(.line) }
179
  /* GNU DWARF 1 extensions */
180
  .debug_srcinfo  0 : { *(.debug_srcinfo) }
181
  .debug_sfnames  0 : { *(.debug_sfnames) }
182
  /* DWARF 1.1 and DWARF 2 */
183
  .debug_aranges  0 : { *(.debug_aranges) }
184
  .debug_pubnames 0 : { *(.debug_pubnames) }
185
  /* DWARF 2 */
186
  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
187
  .debug_abbrev   0 : { *(.debug_abbrev) }
188
  .debug_line     0 : { *(.debug_line) }
189
  .debug_frame    0 : { *(.debug_frame) }
190
  .debug_str      0 : { *(.debug_str) }
191
  .debug_loc      0 : { *(.debug_loc) }
192
  .debug_macinfo  0 : { *(.debug_macinfo) }
193
  /* SGI/MIPS DWARF 2 extensions */
194
  .debug_weaknames 0 : { *(.debug_weaknames) }
195
  .debug_funcnames 0 : { *(.debug_funcnames) }
196
  .debug_typenames 0 : { *(.debug_typenames) }
197
  .debug_varnames  0 : { *(.debug_varnames) }
198
  .note.spu_name 0 : { *(.note.spu_name) }
199
  PROVIDE (__stack = 0x3fff0);
200
  /DISCARD/ : { *(.note.GNU-stack) }
201
}
202
 

powered by: WebSVN 2.1.0

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