3 OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
4 "elf64-powerpc-freebsd")
5 OUTPUT_ARCH(powerpc:common64)
12 /* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
14 .kboot : { *(.text.kboot) }
16 /* Read-only sections, merged into text segment: */
24 /* .gnu.warning sections are handled specially by elf32.em. */
31 /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
32 .interpX : { *(.interp) } : NONE
33 /DISCARD/ : { *(.interp) }
35 /* Also delete notes */
36 /DISCARD/ : { *(.note.*) }
39 .dynsym : { *(.dynsym) }
40 .dynstr : { *(.dynstr) }
41 .gnu.version : { *(.gnu.version) }
42 .gnu.version_d : { *(.gnu.version_d) }
43 .gnu.version_r : { *(.gnu.version_r) }
45 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
47 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
49 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
50 .rela.got : { *(.rela.got) }
51 .rela.got1 : { *(.rela.got1) }
52 .rela.got2 : { *(.rela.got2) }
53 .rela.ctors : { *(.rela.ctors) }
54 .rela.dtors : { *(.rela.dtors) }
55 .rela.init : { *(.rela.init) }
56 .rela.fini : { *(.rela.fini) }
57 .rela.bss : { *(.rela.bss) }
58 .rela.plt : { *(.rela.plt) }
59 .rela.sdata : { *(.rela.sdata) }
60 .rela.sbss : { *(.rela.sbss) }
61 .rela.sdata2 : { *(.rela.sdata2) }
62 .rela.sbss2 : { *(.rela.sbss2) }
64 .init : { *(.init) } =0
65 .fini : { *(.fini) } =0
66 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
67 .rodata1 : { *(.rodata1) }
68 .sdata2 : { *(.sdata2) }
69 .sbss2 : { *(.sbss2) }
70 /* Adjust the address for the data segment to the next page up. */
77 .data1 : { *(.data1) }
78 .toc1 : ALIGN(8) { *(.toc1) }
79 .opd : ALIGN(8) { KEEP (*(.opd)) }
80 .branch_lt : ALIGN(8) { *(.branch_lt) }
82 .got : ALIGN(8) { __tocbase = .; *(.got .toc) }
84 .dynamic : { *(.dynamic) }
85 /* Put .ctors and .dtors next to the .got2 section, so that the pointers
86 get relocated with -mrelocatable. Also put in the .fixup pointers.
87 The current compiler no longer needs this, but keep it around for 2.7.2 */
88 PROVIDE (_GOT2_START_ = .);
90 PROVIDE (__CTOR_LIST__ = .);
91 .ctors : { *(.ctors) }
92 PROVIDE (__CTOR_END__ = .);
93 PROVIDE (__DTOR_LIST__ = .);
94 .dtors : { *(.dtors) }
95 PROVIDE (__DTOR_END__ = .);
96 PROVIDE (_FIXUP_START_ = .);
97 .fixup : { *(.fixup) }
98 PROVIDE (_FIXUP_END_ = .);
99 PROVIDE (_GOT2_END_ = .);
100 /* We want the small data sections together, so single-instruction offsets
101 can access them all, and initialized data all before uninitialized, so
102 we can shorten the on-disk segment size. */
103 .sdata : { *(.sdata) }
108 PROVIDE (__sbss_start = .);
112 PROVIDE (__sbss_end = .);
117 PROVIDE (__bss_start = .);
124 /* Stabs debugging sections. */
125 .stab 0 : { *(.stab) }
126 .stabstr 0 : { *(.stabstr) }
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. */
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) }
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 /* These must appear regardless of . */