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