1/* $FreeBSD$ */ 2 3OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd", 4 "elf64-powerpc-freebsd") 5OUTPUT_ARCH(powerpc:common64) 6ENTRY(__start) 7SEARCH_DIR(/usr/lib); 8PROVIDE (__stack = 0); 9SECTIONS 10{ 11 /* Read-only sections, merged into text segment: */ 12 13 . = kernbase; 14 PROVIDE (begin = . - SIZEOF_HEADERS); 15 16 .text : 17 { 18 *(.text) 19 *(.stub) 20 /* .gnu.warning sections are handled specially by elf32.em. */ 21 *(.gnu.warning) 22 *(.gnu.linkonce.t*) 23 } =0 24 _etext = .; 25 PROVIDE (etext = .); 26 27 /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */ 28 .interpX : { *(.interp) } : NONE 29 /DISCARD/ : { *(.interp) } 30 31 .hash : { *(.hash) } 32 .dynsym : { *(.dynsym) } 33 .dynstr : { *(.dynstr) } 34 .gnu.version : { *(.gnu.version) } 35 .gnu.version_d : { *(.gnu.version_d) } 36 .gnu.version_r : { *(.gnu.version_r) } 37 .rela.text : 38 { *(.rela.text) *(.rela.gnu.linkonce.t*) } 39 .rela.data : 40 { *(.rela.data) *(.rela.gnu.linkonce.d*) } 41 .rela.rodata : 42 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 43 .rela.got : { *(.rela.got) } 44 .rela.got1 : { *(.rela.got1) } 45 .rela.got2 : { *(.rela.got2) } 46 .rela.ctors : { *(.rela.ctors) } 47 .rela.dtors : { *(.rela.dtors) } 48 .rela.init : { *(.rela.init) } 49 .rela.fini : { *(.rela.fini) } 50 .rela.bss : { *(.rela.bss) } 51 .rela.plt : { *(.rela.plt) } 52 .rela.sdata : { *(.rela.sdata) } 53 .rela.sbss : { *(.rela.sbss) } 54 .rela.sdata2 : { *(.rela.sdata2) } 55 .rela.sbss2 : { *(.rela.sbss2) } 56 57 .init : { *(.init) } =0 58 .fini : { *(.fini) } =0 59 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 60 .rodata1 : { *(.rodata1) } 61 .sdata2 : { *(.sdata2) } 62 .sbss2 : { *(.sbss2) } 63 /* Adjust the address for the data segment to the next page up. */ 64 . = ALIGN(4096); 65 .data : 66 { 67 *(.data) 68 *(.gnu.linkonce.d*) 69 } 70 .data1 : { *(.data1) } 71 .toc1 : ALIGN(8) { *(.toc1) } 72 .opd : ALIGN(8) { KEEP (*(.opd)) } 73 .branch_lt : ALIGN(8) { *(.branch_lt) } 74 . = ALIGN(4096); 75 .got : ALIGN(8) { __tocbase = .; *(.got .toc) } 76 77 .dynamic : { *(.dynamic) } 78 /* Put .ctors and .dtors next to the .got2 section, so that the pointers 79 get relocated with -mrelocatable. Also put in the .fixup pointers. 80 The current compiler no longer needs this, but keep it around for 2.7.2 */ 81 PROVIDE (_GOT2_START_ = .); 82 .got2 : { *(.got2) } 83 PROVIDE (__CTOR_LIST__ = .); 84 .ctors : { *(.ctors) } 85 PROVIDE (__CTOR_END__ = .); 86 PROVIDE (__DTOR_LIST__ = .); 87 .dtors : { *(.dtors) } 88 PROVIDE (__DTOR_END__ = .); 89 PROVIDE (_FIXUP_START_ = .); 90 .fixup : { *(.fixup) } 91 PROVIDE (_FIXUP_END_ = .); 92 PROVIDE (_GOT2_END_ = .); 93 /* We want the small data sections together, so single-instruction offsets 94 can access them all, and initialized data all before uninitialized, so 95 we can shorten the on-disk segment size. */ 96 .sdata : { *(.sdata) } 97 _edata = .; 98 PROVIDE (edata = .); 99 .sbss : 100 { 101 PROVIDE (__sbss_start = .); 102 *(.sbss) 103 *(.scommon) 104 *(.dynsbss) 105 PROVIDE (__sbss_end = .); 106 } 107 .plt : { *(.plt) } 108 .bss : 109 { 110 PROVIDE (__bss_start = .); 111 *(.dynbss) 112 *(.bss) 113 *(COMMON) 114 } 115 _end = . ; 116 PROVIDE (end = .); 117 /* Stabs debugging sections. */ 118 .stab 0 : { *(.stab) } 119 .stabstr 0 : { *(.stabstr) } 120 /* DWARF debug sections. 121 Symbols in the DWARF debugging sections are relative to the beginning 122 of the section so we begin them at 0. */ 123 /* DWARF 1 */ 124 .debug 0 : { *(.debug) } 125 .line 0 : { *(.line) } 126 /* GNU DWARF 1 extensions */ 127 .debug_srcinfo 0 : { *(.debug_srcinfo) } 128 .debug_sfnames 0 : { *(.debug_sfnames) } 129 /* DWARF 1.1 and DWARF 2 */ 130 .debug_aranges 0 : { *(.debug_aranges) } 131 .debug_pubnames 0 : { *(.debug_pubnames) } 132 /* DWARF 2 */ 133 .debug_info 0 : { *(.debug_info) } 134 .debug_abbrev 0 : { *(.debug_abbrev) } 135 .debug_line 0 : { *(.debug_line) } 136 .debug_frame 0 : { *(.debug_frame) } 137 .debug_str 0 : { *(.debug_str) } 138 .debug_loc 0 : { *(.debug_loc) } 139 .debug_macinfo 0 : { *(.debug_macinfo) } 140 /* SGI/MIPS DWARF 2 extensions */ 141 .debug_weaknames 0 : { *(.debug_weaknames) } 142 .debug_funcnames 0 : { *(.debug_funcnames) } 143 .debug_typenames 0 : { *(.debug_typenames) } 144 .debug_varnames 0 : { *(.debug_varnames) } 145 /* These must appear regardless of . */ 146} 147 148