OSDN Git Service

temp
[gengkapak/clang-GengKapak.git] / aarch64-linux-gnu / lib / ldscripts / aarch64linux32b.xr
1 /* Script for -r */
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-bigaarch64", "elf32-bigaarch64",
7               "elf32-littleaarch64")
8 OUTPUT_ARCH(aarch64:ilp32)
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   .rela.init    0 : { *(.rela.init) }
25   .rela.text    0 : { *(.rela.text) }
26   .rela.fini    0 : { *(.rela.fini) }
27   .rela.rodata  0 : { *(.rela.rodata) }
28   .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
29   .rela.data    0 : { *(.rela.data) }
30   .rela.tdata   0 : { *(.rela.tdata) }
31   .rela.tbss    0 : { *(.rela.tbss) }
32   .rela.ctors   0 : { *(.rela.ctors) }
33   .rela.dtors   0 : { *(.rela.dtors) }
34   .rela.got     0 : { *(.rela.got) }
35   .rela.bss     0 : { *(.rela.bss) }
36   .rela.ifunc   0 : { *(.rela.ifunc) }
37   .rela.plt     0 :
38     {
39       *(.rela.plt)
40     }
41   .init         0 :
42   {
43     KEEP (*(SORT_NONE(.init)))
44   } =0x1f2003d5
45   .plt          0 : ALIGN(16) { *(.plt) }
46   .text         0 :
47   {
48     *(.text .stub)
49     /* .gnu.warning sections are handled specially by elf.em.  */
50     *(.gnu.warning)
51   } =0x1f2003d5
52   .fini         0 :
53   {
54     KEEP (*(SORT_NONE(.fini)))
55   } =0x1f2003d5
56   .rodata       0 : { *(.rodata) }
57   .rodata1      0 : { *(.rodata1) }
58   .eh_frame_hdr 0 : { *(.eh_frame_hdr) }
59   .eh_frame     0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
60   .sframe       0 : ONLY_IF_RO { *(.sframe) }
61   .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table) }
62   .gnu_extab 0 : ONLY_IF_RO { *(.gnu_extab*) }
63   /* These sections are generated by the Sun/Oracle C++ compiler.  */
64   .exception_ranges 0 : ONLY_IF_RO { *(.exception_ranges) }
65   /* Exception handling  */
66   .eh_frame     0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
67   .sframe       0 : ONLY_IF_RW { *(.sframe) }
68   .gnu_extab    0 : ONLY_IF_RW { *(.gnu_extab) }
69   .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table) }
70   .exception_ranges 0 : ONLY_IF_RW { *(.exception_ranges) }
71   /* Thread Local Storage sections  */
72   .tdata        0 :
73    {
74      *(.tdata)
75    }
76   .tbss         0 : { *(.tbss) }
77   .jcr          0 : { KEEP (*(.jcr)) }
78   .dynamic      0 : { *(.dynamic) }
79   .got          0 : { *(.got) }
80   .got.plt      0 : { *(.got.plt) }
81   .data         0 :
82   {
83     *(.data)
84   }
85   .data1        0 : { *(.data1) }
86   .bss          0 :
87   {
88    *(.bss)
89   }
90   /* Stabs debugging sections.  */
91   .stab          0 : { *(.stab) }
92   .stabstr       0 : { *(.stabstr) }
93   .stab.excl     0 : { *(.stab.excl) }
94   .stab.exclstr  0 : { *(.stab.exclstr) }
95   .stab.index    0 : { *(.stab.index) }
96   .stab.indexstr 0 : { *(.stab.indexstr) }
97   .comment       0 : { *(.comment) }
98   .gnu.build.attributes : { *(.gnu.build.attributes) }
99   /* DWARF debug sections.
100      Symbols in the DWARF debugging sections are relative to the beginning
101      of the section so we begin them at 0.  */
102   /* DWARF 1.  */
103   .debug          0 : { *(.debug) }
104   .line           0 : { *(.line) }
105   /* GNU DWARF 1 extensions.  */
106   .debug_srcinfo  0 : { *(.debug_srcinfo) }
107   .debug_sfnames  0 : { *(.debug_sfnames) }
108   /* DWARF 1.1 and DWARF 2.  */
109   .debug_aranges  0 : { *(.debug_aranges) }
110   .debug_pubnames 0 : { *(.debug_pubnames) }
111   /* DWARF 2.  */
112   .debug_info     0 : { *(.debug_info) }
113   .debug_abbrev   0 : { *(.debug_abbrev) }
114   .debug_line     0 : { *(.debug_line) }
115   .debug_frame    0 : { *(.debug_frame) }
116   .debug_str      0 : { *(.debug_str) }
117   .debug_loc      0 : { *(.debug_loc) }
118   .debug_macinfo  0 : { *(.debug_macinfo) }
119   /* SGI/MIPS DWARF 2 extensions.  */
120   .debug_weaknames 0 : { *(.debug_weaknames) }
121   .debug_funcnames 0 : { *(.debug_funcnames) }
122   .debug_typenames 0 : { *(.debug_typenames) }
123   .debug_varnames  0 : { *(.debug_varnames) }
124   /* DWARF 3.  */
125   .debug_pubtypes 0 : { *(.debug_pubtypes) }
126   .debug_ranges   0 : { *(.debug_ranges) }
127   /* DWARF 5.  */
128   .debug_addr     0 : { *(.debug_addr) }
129   .debug_line_str 0 : { *(.debug_line_str) }
130   .debug_loclists 0 : { *(.debug_loclists) }
131   .debug_macro    0 : { *(.debug_macro) }
132   .debug_names    0 : { *(.debug_names) }
133   .debug_rnglists 0 : { *(.debug_rnglists) }
134   .debug_str_offsets 0 : { *(.debug_str_offsets) }
135   .debug_sup      0 : { *(.debug_sup) }
136   .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
137   .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
138 }