1
/* Script for ld -Ur: link w/out relocation, do create constructors */
2
OUTPUT_FORMAT("elf64-bigaarch64", "elf64-bigaarch64",
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. */
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.bss 0 : { *(.rela.bss) }
43
KEEP (*(SORT_NONE(.init)))
46
.iplt 0 : { *(.iplt) }
50
/* .gnu.warning sections are handled specially by elf32.em. */
55
KEEP (*(SORT_NONE(.fini)))
57
.rodata 0 : { *(.rodata) }
58
.rodata1 0 : { *(.rodata1) }
59
.eh_frame_hdr : { *(.eh_frame_hdr) }
60
.eh_frame 0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
61
.gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table
62
.gcc_except_table.*) }
63
/* These sections are generated by the Sun/Oracle C++ compiler. */
64
.exception_ranges 0 : ONLY_IF_RO { *(.exception_ranges
66
/* Adjust the address for the data segment. We want to adjust up to
67
the same address within the page on the next page up. */
68
/* Exception handling */
69
.eh_frame 0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
70
.gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
71
.exception_ranges 0 : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
72
/* Thread Local Storage sections */
73
.tdata 0 : { *(.tdata) }
74
.tbss 0 : { *(.tbss) }
77
KEEP (*(.preinit_array))
79
.jcr 0 : { KEEP (*(.jcr)) }
80
.dynamic 0 : { *(.dynamic) }
81
.got 0 : { *(.got) *(.igot) }
82
.got.plt 0 : { *(.got.plt) *(.igot.plt) }
88
.data1 0 : { *(.data1) }
94
/* Align here to ensure that the .bss section occupies space up to
95
_end. Align after .bss to ensure correct alignment even if the
96
.bss section disappears because there are no input sections.
97
FIXME: Why do we need it? When there is no .bss section, we don't
98
pad the .data section. */
100
/* Stabs debugging sections. */
101
.stab 0 : { *(.stab) }
102
.stabstr 0 : { *(.stabstr) }
103
.stab.excl 0 : { *(.stab.excl) }
104
.stab.exclstr 0 : { *(.stab.exclstr) }
105
.stab.index 0 : { *(.stab.index) }
106
.stab.indexstr 0 : { *(.stab.indexstr) }
107
.comment 0 : { *(.comment) }
108
/* DWARF debug sections.
109
Symbols in the DWARF debugging sections are relative to the beginning
110
of the section so we begin them at 0. */
112
.debug 0 : { *(.debug) }
113
.line 0 : { *(.line) }
114
/* GNU DWARF 1 extensions */
115
.debug_srcinfo 0 : { *(.debug_srcinfo) }
116
.debug_sfnames 0 : { *(.debug_sfnames) }
117
/* DWARF 1.1 and DWARF 2 */
118
.debug_aranges 0 : { *(.debug_aranges) }
119
.debug_pubnames 0 : { *(.debug_pubnames) }
121
.debug_info 0 : { *(.debug_info) }
122
.debug_abbrev 0 : { *(.debug_abbrev) }
123
.debug_line 0 : { *(.debug_line .debug_line.* .debug_line_end ) }
124
.debug_frame 0 : { *(.debug_frame) }
125
.debug_str 0 : { *(.debug_str) }
126
.debug_loc 0 : { *(.debug_loc) }
127
.debug_macinfo 0 : { *(.debug_macinfo) }
128
/* SGI/MIPS DWARF 2 extensions */
129
.debug_weaknames 0 : { *(.debug_weaknames) }
130
.debug_funcnames 0 : { *(.debug_funcnames) }
131
.debug_typenames 0 : { *(.debug_typenames) }
132
.debug_varnames 0 : { *(.debug_varnames) }
134
.debug_pubtypes 0 : { *(.debug_pubtypes) }
135
.debug_ranges 0 : { *(.debug_ranges) }
136
/* DWARF Extension. */
137
.debug_macro 0 : { *(.debug_macro) }
142
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
143
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }