OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / prebuilt / linux-x86 / toolchain / sh-4.3.3 / sh-linux-gnu / lib / ldscripts / shelf_linux.xu
1 /* Script for ld -Ur: link w/out relocation, do create constructors */
2 OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux",
3               "elf32-shbig-linux")
4 OUTPUT_ARCH(sh)
5  /* For some reason, the Solaris linker makes bad executables
6   if gld -r is used and the intermediate file has sections starting
7   at non-zero addresses.  Could be a Solaris ld bug, could be a GNU ld
8   bug.  But for now assigning the zero vmas works.  */
9 SECTIONS
10 {
11   /* Read-only sections, merged into text segment: */
12   .interp       0 : { *(.interp) }
13   .note.gnu.build-id : { *(.note.gnu.build-id) }
14   .hash         0 : { *(.hash) }
15   .gnu.hash     0 : { *(.gnu.hash) }
16   .dynsym       0 : { *(.dynsym) }
17   .dynstr       0 : { *(.dynstr) }
18   .gnu.version  0 : { *(.gnu.version) }
19   .gnu.version_d 0: { *(.gnu.version_d) }
20   .gnu.version_r 0: { *(.gnu.version_r) }
21   .rela.init    0 : { *(.rela.init) }
22   .rela.text    0 : { *(.rela.text) }
23   .rela.fini    0 : { *(.rela.fini) }
24   .rela.rodata  0 : { *(.rela.rodata) }
25   .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
26   .rela.data    0 : { *(.rela.data) }
27   .rela.tdata   0 : { *(.rela.tdata) }
28   .rela.tbss    0 : { *(.rela.tbss) }
29   .rela.ctors   0 : { *(.rela.ctors) }
30   .rela.dtors   0 : { *(.rela.dtors) }
31   .rela.got     0 : { *(.rela.got) }
32   .rela.sdata   0 : { *(.rela.sdata) }
33   .rela.sbss    0 : { *(.rela.sbss) }
34   .rela.sdata2  0 : { *(.rela.sdata2) }
35   .rela.sbss2   0 : { *(.rela.sbss2) }
36   .rela.bss     0 : { *(.rela.bss) }
37   .rela.plt     0 : { *(.rela.plt) }
38   .init         0 :
39   {
40     KEEP (*(.init))
41   } =0
42   .plt          0 : { *(.plt) }
43   .text         0 :
44   {
45     *(.text .stub)
46     /* .gnu.warning sections are handled specially by elf32.em.  */
47     *(.gnu.warning)
48   } =0
49   .fini         0 :
50   {
51     KEEP (*(.fini))
52   } =0
53   .rodata       0 : { *(.rodata) }
54   .rodata1      0 : { *(.rodata1) }
55   .sdata2       0 :
56   {
57     *(.sdata2)
58   }
59   .sbss2        0 : { *(.sbss2) }
60   .eh_frame_hdr : { *(.eh_frame_hdr) }
61   .eh_frame     0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
62   .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
63   /* Adjust the address for the data segment.  We want to adjust up to
64      the same address within the page on the next page up.  */
65   /* Exception handling  */
66   .eh_frame     0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
67   .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
68   /* Thread Local Storage sections  */
69   .tdata        0 : { *(.tdata) }
70   .tbss         0 : { *(.tbss) }
71   .preinit_array   0 :
72   {
73     KEEP (*(.preinit_array))
74   }
75   .init_array   0 :
76   {
77      KEEP (*(SORT(.init_array.*)))
78      KEEP (*(.init_array))
79   }
80   .fini_array   0 :
81   {
82     KEEP (*(.fini_array))
83     KEEP (*(SORT(.fini_array.*)))
84   }
85   .jcr          0 : { KEEP (*(.jcr)) }
86   .dynamic      0 : { *(.dynamic) }
87   .data         0 :
88   {
89     *(.data)
90     SORT(CONSTRUCTORS)
91   }
92   .data1        0 : { *(.data1) }
93   .note.ABI-tag 0 : { *(.note.ABI-tag) }
94   .got          0 : { *(.got.plt) *(.got) }
95   /* We want the small data sections together, so single-instruction offsets
96      can access them all, and initialized data all before uninitialized, so
97      we can shorten the on-disk segment size.  */
98   .sdata        0 :
99   {
100     *(.sdata)
101   }
102   .sbss         0 :
103   {
104     *(.dynsbss)
105     *(.sbss)
106     *(.scommon)
107   }
108   .bss          0 :
109   {
110    *(.dynbss)
111    *(.bss)
112    *(COMMON)
113    /* Align here to ensure that the .bss section occupies space up to
114       _end.  Align after .bss to ensure correct alignment even if the
115       .bss section disappears because there are no input sections.
116       FIXME: Why do we need it? When there is no .bss section, we don't
117       pad the .data section.  */
118   }
119   /* Stabs debugging sections.  */
120   .stab          0 : { *(.stab) }
121   .stabstr       0 : { *(.stabstr) }
122   .stab.excl     0 : { *(.stab.excl) }
123   .stab.exclstr  0 : { *(.stab.exclstr) }
124   .stab.index    0 : { *(.stab.index) }
125   .stab.indexstr 0 : { *(.stab.indexstr) }
126   .comment       0 : { *(.comment) }
127   /* DWARF debug sections.
128      Symbols in the DWARF debugging sections are relative to the beginning
129      of the section so we begin them at 0.  */
130   /* DWARF 1 */
131   .debug          0 : { *(.debug) }
132   .line           0 : { *(.line) }
133   /* GNU DWARF 1 extensions */
134   .debug_srcinfo  0 : { *(.debug_srcinfo) }
135   .debug_sfnames  0 : { *(.debug_sfnames) }
136   /* DWARF 1.1 and DWARF 2 */
137   .debug_aranges  0 : { *(.debug_aranges) }
138   .debug_pubnames 0 : { *(.debug_pubnames) }
139   /* DWARF 2 */
140   .debug_info     0 : { *(.debug_info) }
141   .debug_abbrev   0 : { *(.debug_abbrev) }
142   .debug_line     0 : { *(.debug_line) }
143   .debug_frame    0 : { *(.debug_frame) }
144   .debug_str      0 : { *(.debug_str) }
145   .debug_loc      0 : { *(.debug_loc) }
146   .debug_macinfo  0 : { *(.debug_macinfo) }
147   /* SGI/MIPS DWARF 2 extensions */
148   .debug_weaknames 0 : { *(.debug_weaknames) }
149   .debug_funcnames 0 : { *(.debug_funcnames) }
150   .debug_typenames 0 : { *(.debug_typenames) }
151   .debug_varnames  0 : { *(.debug_varnames) }
152   /* DWARF 3 */
153   .debug_pubtypes 0 : { *(.debug_pubtypes) }
154   .debug_ranges   0 : { *(.debug_ranges) }
155   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
156 }