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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-arm/] [arm-lib.ld] - Blame information for rev 818

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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