3 OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
4 "elf64-powerpc-freebsd")
5 OUTPUT_ARCH(powerpc:common64)
17 /* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
19 .kboot : { *(.text.kboot) } :text
21 /* Read-only sections, merged into text segment: */
30 /* .gnu.warning sections are handled specially by elf32.em. */
37 /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
38 /DISCARD/ : { *(.interp) }
40 /* Also delete notes */
41 /DISCARD/ : { *(.note.*) }
44 .dynsym : { *(.dynsym) }
45 .dynstr : { *(.dynstr) }
46 .gnu.version : { *(.gnu.version) }
47 .gnu.version_d : { *(.gnu.version_d) }
48 .gnu.version_r : { *(.gnu.version_r) }
50 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
52 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
54 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
55 .rela.got : { *(.rela.got) }
56 .rela.got1 : { *(.rela.got1) }
57 .rela.got2 : { *(.rela.got2) }
58 .rela.ctors : { *(.rela.ctors) }
59 .rela.dtors : { *(.rela.dtors) }
60 .rela.init : { *(.rela.init) }
61 .rela.fini : { *(.rela.fini) }
62 .rela.bss : { *(.rela.bss) }
63 .rela.plt : { *(.rela.plt) }
64 .rela.sdata : { *(.rela.sdata) }
65 .rela.sbss : { *(.rela.sbss) }
66 .rela.sdata2 : { *(.rela.sdata2) }
67 .rela.sbss2 : { *(.rela.sbss2) }
69 .init : { *(.init) } =0
70 .fini : { *(.fini) } =0
71 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
72 .rodata1 : { *(.rodata1) }
73 .sdata2 : { *(.sdata2) }
74 .sbss2 : { *(.sbss2) }
75 /* Adjust the address for the data segment to the next page up. */
77 .data.read_frequently :
79 *(SORT_BY_ALIGNMENT(.data.read_frequently))
86 .data.exclusive_cache_line :
88 *(.data.exclusive_cache_line)
96 .data1 : { *(.data1) }
97 .toc1 : ALIGN(8) { *(.toc1) }
98 .opd : ALIGN(8) { KEEP (*(.opd)) }
99 .branch_lt : ALIGN(8) { *(.branch_lt) }
101 .got : ALIGN(8) { __tocbase = .; *(.got .toc) }
103 .dynamic : { *(.dynamic) } :text :dynamic
104 /* Put .ctors and .dtors next to the .got2 section, so that the pointers
105 get relocated with -mrelocatable. Also put in the .fixup pointers.
106 The current compiler no longer needs this, but keep it around for 2.7.2 */
107 PROVIDE (_GOT2_START_ = .);
109 PROVIDE (__CTOR_LIST__ = .);
110 .ctors : { *(.ctors) }
111 PROVIDE (__CTOR_END__ = .);
112 PROVIDE (__DTOR_LIST__ = .);
113 .dtors : { *(.dtors) }
114 PROVIDE (__DTOR_END__ = .);
115 PROVIDE (_FIXUP_START_ = .);
116 .fixup : { *(.fixup) }
117 PROVIDE (_FIXUP_END_ = .);
118 PROVIDE (_GOT2_END_ = .);
119 /* We want the small data sections together, so single-instruction offsets
120 can access them all, and initialized data all before uninitialized, so
121 we can shorten the on-disk segment size. */
122 .sdata : { *(.sdata) }
127 PROVIDE (__sbss_start = .);
131 PROVIDE (__sbss_end = .);
136 PROVIDE (__bss_start = .);
143 /* Stabs debugging sections. */
144 .stab 0 : { *(.stab) }
145 .stabstr 0 : { *(.stabstr) }
146 /* DWARF debug sections.
147 Symbols in the DWARF debugging sections are relative to the beginning
148 of the section so we begin them at 0. */
150 .debug 0 : { *(.debug) }
151 .line 0 : { *(.line) }
152 /* GNU DWARF 1 extensions */
153 .debug_srcinfo 0 : { *(.debug_srcinfo) }
154 .debug_sfnames 0 : { *(.debug_sfnames) }
155 /* DWARF 1.1 and DWARF 2 */
156 .debug_aranges 0 : { *(.debug_aranges) }
157 .debug_pubnames 0 : { *(.debug_pubnames) }
159 .debug_info 0 : { *(.debug_info) }
160 .debug_abbrev 0 : { *(.debug_abbrev) }
161 .debug_line 0 : { *(.debug_line) }
162 .debug_frame 0 : { *(.debug_frame) }
163 .debug_str 0 : { *(.debug_str) }
164 .debug_loc 0 : { *(.debug_loc) }
165 .debug_macinfo 0 : { *(.debug_macinfo) }
166 /* SGI/MIPS DWARF 2 extensions */
167 .debug_weaknames 0 : { *(.debug_weaknames) }
168 .debug_funcnames 0 : { *(.debug_funcnames) }
169 .debug_typenames 0 : { *(.debug_typenames) }
170 .debug_varnames 0 : { *(.debug_varnames) }
171 /* These must appear regardless of . */