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