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) }
49 .note.gnu.build-id : {
50 PROVIDE (__build_id_start = .);
52 PROVIDE (__build_id_end = .);
55 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
57 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
59 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
60 .rela.got : { *(.rela.got) }
61 .rela.got1 : { *(.rela.got1) }
62 .rela.got2 : { *(.rela.got2) }
63 .rela.ctors : { *(.rela.ctors) }
64 .rela.dtors : { *(.rela.dtors) }
65 .rela.init : { *(.rela.init) }
66 .rela.fini : { *(.rela.fini) }
67 .rela.bss : { *(.rela.bss) }
68 .rela.plt : { *(.rela.plt) }
69 .rela.sdata : { *(.rela.sdata) }
70 .rela.sbss : { *(.rela.sbss) }
71 .rela.sdata2 : { *(.rela.sdata2) }
72 .rela.sbss2 : { *(.rela.sbss2) }
74 .init : { *(.init) } =0
75 .fini : { *(.fini) } =0
76 .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
77 .rodata1 : { *(.rodata1) }
78 .sdata2 : { *(.sdata2) }
79 .sbss2 : { *(.sbss2) }
80 /* Adjust the address for the data segment to the next page up. */
82 .data.read_frequently :
84 *(SORT_BY_ALIGNMENT(.data.read_frequently))
91 .data.exclusive_cache_line :
93 *(.data.exclusive_cache_line)
101 .data1 : { *(.data1) }
102 .toc1 : ALIGN(8) { *(.toc1) }
103 .opd : ALIGN(8) { KEEP (*(.opd)) }
104 .branch_lt : ALIGN(8) { *(.branch_lt) }
106 .got : ALIGN(8) { __tocbase = .; *(.got) }
107 .toc : ALIGN(8) { *(.toc) }
109 .dynamic : { *(.dynamic) } :text :dynamic
110 /* Put .ctors and .dtors next to the .got2 section, so that the pointers
111 get relocated with -mrelocatable. Also put in the .fixup pointers.
112 The current compiler no longer needs this, but keep it around for 2.7.2 */
113 PROVIDE (_GOT2_START_ = .);
115 PROVIDE (__CTOR_LIST__ = .);
116 .ctors : { *(.ctors) }
117 PROVIDE (__CTOR_END__ = .);
118 PROVIDE (__DTOR_LIST__ = .);
119 .dtors : { *(.dtors) }
120 PROVIDE (__DTOR_END__ = .);
121 PROVIDE (_FIXUP_START_ = .);
122 .fixup : { *(.fixup) }
123 PROVIDE (_FIXUP_END_ = .);
124 PROVIDE (_GOT2_END_ = .);
125 /* We want the small data sections together, so single-instruction offsets
126 can access them all, and initialized data all before uninitialized, so
127 we can shorten the on-disk segment size. */
128 .sdata : { *(.sdata) }
133 PROVIDE (__sbss_start = .);
137 PROVIDE (__sbss_end = .);
142 PROVIDE (__bss_start = .);
149 /* Stabs debugging sections. */
150 .stab 0 : { *(.stab) }
151 .stabstr 0 : { *(.stabstr) }
152 /* DWARF debug sections.
153 Symbols in the DWARF debugging sections are relative to the beginning
154 of the section so we begin them at 0. */
156 .debug 0 : { *(.debug) }
157 .line 0 : { *(.line) }
158 /* GNU DWARF 1 extensions */
159 .debug_srcinfo 0 : { *(.debug_srcinfo) }
160 .debug_sfnames 0 : { *(.debug_sfnames) }
161 /* DWARF 1.1 and DWARF 2 */
162 .debug_aranges 0 : { *(.debug_aranges) }
163 .debug_pubnames 0 : { *(.debug_pubnames) }
165 .debug_info 0 : { *(.debug_info) }
166 .debug_abbrev 0 : { *(.debug_abbrev) }
167 .debug_line 0 : { *(.debug_line) }
168 .debug_frame 0 : { *(.debug_frame) }
169 .debug_str 0 : { *(.debug_str) }
170 .debug_loc 0 : { *(.debug_loc) }
171 .debug_macinfo 0 : { *(.debug_macinfo) }
172 /* SGI/MIPS DWARF 2 extensions */
173 .debug_weaknames 0 : { *(.debug_weaknames) }
174 .debug_funcnames 0 : { *(.debug_funcnames) }
175 .debug_typenames 0 : { *(.debug_typenames) }
176 .debug_varnames 0 : { *(.debug_varnames) }
177 /* These must appear regardless of . */