OSDN Git Service

temp
[gengkapak/clang-GengKapak.git] / arm-linux-gnueabi / lib / ldscripts / armelfb_linux_eabi.xu
1 /* Script for -Ur */
2 /* Copyright (C) 2014-2023 Free Software Foundation, Inc.
3    Copying and distribution of this script, with or without modification,
4    are permitted in any medium without royalty provided the copyright
5    notice and this notice are preserved.  */
6 OUTPUT_FORMAT("elf32-bigarm", "elf32-bigarm",
7               "elf32-littlearm")
8 OUTPUT_ARCH(arm)
9  /* For some reason, the Solaris linker makes bad executables
10   if gld -r is used and the intermediate file has sections starting
11   at non-zero addresses.  Could be a Solaris ld bug, could be a GNU ld
12   bug.  But for now assigning the zero vmas works.  */
13 SECTIONS
14 {
15   .interp       0 : { *(.interp) }
16   .note.gnu.build-id 0: { *(.note.gnu.build-id) }
17   .hash         0 : { *(.hash) }
18   .gnu.hash     0 : { *(.gnu.hash) }
19   .dynsym       0 : { *(.dynsym) }
20   .dynstr       0 : { *(.dynstr) }
21   .gnu.version  0 : { *(.gnu.version) }
22   .gnu.version_d 0: { *(.gnu.version_d) }
23   .gnu.version_r 0: { *(.gnu.version_r) }
24   .rel.init     0 : { *(.rel.init) }
25   .rela.init    0 : { *(.rela.init) }
26   .rel.text     0 : { *(.rel.text) }
27   .rela.text    0 : { *(.rela.text) }
28   .rel.fini     0 : { *(.rel.fini) }
29   .rela.fini    0 : { *(.rela.fini) }
30   .rel.rodata   0 : { *(.rel.rodata) }
31   .rela.rodata  0 : { *(.rela.rodata) }
32   .rel.data.rel.ro 0 : { *(.rel.data.rel.ro) }
33   .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
34   .rel.data     0 : { *(.rel.data) }
35   .rela.data    0 : { *(.rela.data) }
36   .rel.tdata    0 : { *(.rel.tdata) }
37   .rela.tdata   0 : { *(.rela.tdata) }
38   .rel.tbss     0 : { *(.rel.tbss) }
39   .rela.tbss    0 : { *(.rela.tbss) }
40   .rel.ctors    0 : { *(.rel.ctors) }
41   .rela.ctors   0 : { *(.rela.ctors) }
42   .rel.dtors    0 : { *(.rel.dtors) }
43   .rela.dtors   0 : { *(.rela.dtors) }
44   .rel.got      0 : { *(.rel.got) }
45   .rela.got     0 : { *(.rela.got) }
46   .rel.bss      0 : { *(.rel.bss) }
47   .rela.bss     0 : { *(.rela.bss) }
48   .rel.iplt     0 :
49     {
50       *(.rel.iplt)
51     }
52   .rela.iplt    0 :
53     {
54       *(.rela.iplt)
55     }
56   .rel.plt      0 :
57     {
58       *(.rel.plt)
59     }
60   .rela.plt     0 :
61     {
62       *(.rela.plt)
63     }
64   .init         0 :
65   {
66     KEEP (*(SORT_NONE(.init)))
67   }
68   .plt          0 : { *(.plt) }
69   .iplt         0 : { *(.iplt) }
70   .text         0 :
71   {
72     *(.text .stub)
73     /* .gnu.warning sections are handled specially by elf.em.  */
74     *(.gnu.warning)
75   }
76   .fini         0 :
77   {
78     KEEP (*(SORT_NONE(.fini)))
79   }
80   .rodata       0 : { *(.rodata) }
81   .rodata1      0 : { *(.rodata1) }
82   .ARM.extab 0 : { *(.ARM.extab) }
83   .ARM.exidx 0 :
84     {
85       *(.ARM.exidx)
86     }
87   .eh_frame_hdr 0 : { *(.eh_frame_hdr) }
88   .eh_frame     0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
89   .sframe       0 : ONLY_IF_RO { *(.sframe) }
90   .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table) }
91   .gnu_extab 0 : ONLY_IF_RO { *(.gnu_extab*) }
92   /* These sections are generated by the Sun/Oracle C++ compiler.  */
93   .exception_ranges 0 : ONLY_IF_RO { *(.exception_ranges) }
94   /* Exception handling  */
95   .eh_frame     0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
96   .sframe       0 : ONLY_IF_RW { *(.sframe) }
97   .gnu_extab    0 : ONLY_IF_RW { *(.gnu_extab) }
98   .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table) }
99   .exception_ranges 0 : ONLY_IF_RW { *(.exception_ranges) }
100   /* Thread Local Storage sections  */
101   .tdata        0 :
102    {
103      *(.tdata)
104    }
105   .tbss         0 : { *(.tbss) }
106   .jcr          0 : { KEEP (*(.jcr)) }
107   .dynamic      0 : { *(.dynamic) }
108   .got          0 : { *(.got) }
109   .data         0 :
110   {
111     *(.data)
112     SORT(CONSTRUCTORS)
113   }
114   .data1        0 : { *(.data1) }
115   .bss          0 :
116   {
117    *(.bss)
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   .gnu.build.attributes : { *(.gnu.build.attributes) }
128   /* DWARF debug sections.
129      Symbols in the DWARF debugging sections are relative to the beginning
130      of the section so we begin them at 0.  */
131   /* DWARF 1.  */
132   .debug          0 : { *(.debug) }
133   .line           0 : { *(.line) }
134   /* GNU DWARF 1 extensions.  */
135   .debug_srcinfo  0 : { *(.debug_srcinfo) }
136   .debug_sfnames  0 : { *(.debug_sfnames) }
137   /* DWARF 1.1 and DWARF 2.  */
138   .debug_aranges  0 : { *(.debug_aranges) }
139   .debug_pubnames 0 : { *(.debug_pubnames) }
140   /* DWARF 2.  */
141   .debug_info     0 : { *(.debug_info) }
142   .debug_abbrev   0 : { *(.debug_abbrev) }
143   .debug_line     0 : { *(.debug_line) }
144   .debug_frame    0 : { *(.debug_frame) }
145   .debug_str      0 : { *(.debug_str) }
146   .debug_loc      0 : { *(.debug_loc) }
147   .debug_macinfo  0 : { *(.debug_macinfo) }
148   /* SGI/MIPS DWARF 2 extensions.  */
149   .debug_weaknames 0 : { *(.debug_weaknames) }
150   .debug_funcnames 0 : { *(.debug_funcnames) }
151   .debug_typenames 0 : { *(.debug_typenames) }
152   .debug_varnames  0 : { *(.debug_varnames) }
153   /* DWARF 3.  */
154   .debug_pubtypes 0 : { *(.debug_pubtypes) }
155   .debug_ranges   0 : { *(.debug_ranges) }
156   /* DWARF 5.  */
157   .debug_addr     0 : { *(.debug_addr) }
158   .debug_line_str 0 : { *(.debug_line_str) }
159   .debug_loclists 0 : { *(.debug_loclists) }
160   .debug_macro    0 : { *(.debug_macro) }
161   .debug_names    0 : { *(.debug_names) }
162   .debug_rnglists 0 : { *(.debug_rnglists) }
163   .debug_str_offsets 0 : { *(.debug_str_offsets) }
164   .debug_sup      0 : { *(.debug_sup) }
165   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
166   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
167 }