1OUTPUT_FORMAT("elf32-powerpc-freebsd", "elf32-powerpc-freebsd", 2 "elf32-powerpc-freebsd") 3OUTPUT_ARCH(powerpc:common) 4ENTRY(_start) 5SEARCH_DIR(/usr/lib); 6PROVIDE (__stack = 0); 7SECTIONS 8{ 9 /* Read-only sections, merged into text segment: */ 10 . = 0x100000; 11 .interp : { *(.interp) } :text 12 .hash : { *(.hash) } 13 .dynsym : { *(.dynsym) } 14 .dynstr : { *(.dynstr) } 15 .gnu.version : { *(.gnu.version) } 16 .gnu.version_d : { *(.gnu.version_d) } 17 .gnu.version_r : { *(.gnu.version_r) } 18 .rela.text : 19 { *(.rela.text) *(.rela.gnu.linkonce.t*) } 20 .rela.data : 21 { *(.rela.data) *(.rela.gnu.linkonce.d*) } 22 .rela.rodata : 23 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 24 .rela.got : { *(.rela.got) } 25 .rela.got1 : { *(.rela.got1) } 26 .rela.got2 : { *(.rela.got2) } 27 .rela.ctors : { *(.rela.ctors) } 28 .rela.dtors : { *(.rela.dtors) } 29 .rela.init : { *(.rela.init) } 30 .rela.fini : { *(.rela.fini) } 31 .rela.bss : { *(.rela.bss) } 32 .rela.plt : { *(.rela.plt) } 33 .rela.sdata : { *(.rela.sdata) } 34 .rela.sbss : { *(.rela.sbss) } 35 .rela.sdata2 : { *(.rela.sdata2) } 36 .rela.sbss2 : { *(.rela.sbss2) } 37 .text : 38 { 39 *(.text) 40 /* .gnu.warning sections are handled specially by elf32.em. */ 41 *(.gnu.warning) 42 *(.gnu.linkonce.t*) 43 } =0 44 _etext = .; 45 PROVIDE (etext = .); 46 .init : { *(.init) } =0 47 .fini : { *(.fini) } =0 48 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 49 .rodata1 : { *(.rodata1) } 50 .sdata2 : { *(.sdata2) } 51 .sbss2 : { *(.sbss2) } 52 /* Adjust the address for the data segment to the next page up. */ 53 . = ((. + 0x1000) & ~(0x1000 - 1)); 54 .data.rel.ro : { *(.data.rel.ro*) } 55 .data : 56 { 57 *(.data) 58 *(.gnu.linkonce.d*) 59 CONSTRUCTORS 60 } 61 .data1 : { *(.data1) } 62 .got1 : { *(.got1) } 63 .dynamic : { *(.dynamic) } 64 /* Put .ctors and .dtors next to the .got2 section, so that the pointers 65 get relocated with -mrelocatable. Also put in the .fixup pointers. 66 The current compiler no longer needs this, but keep it around for 2.7.2 */ 67 PROVIDE (_GOT2_START_ = .); 68 .got2 : { *(.got2) } 69 PROVIDE (__CTOR_LIST__ = .); 70 .ctors : { *(.ctors) } 71 PROVIDE (__CTOR_END__ = .); 72 PROVIDE (__DTOR_LIST__ = .); 73 .dtors : { *(.dtors) } 74 PROVIDE (__DTOR_END__ = .); 75 PROVIDE (_FIXUP_START_ = .); 76 .fixup : { *(.fixup) } 77 PROVIDE (_FIXUP_END_ = .); 78 PROVIDE (_GOT2_END_ = .); 79 PROVIDE (_GOT_START_ = .); 80 .got : { *(.got) } 81 .got.plt : { *(.got.plt) } 82 PROVIDE (_GOT_END_ = .); 83 /* We want the small data sections together, so single-instruction offsets 84 can access them all, and initialized data all before uninitialized, so 85 we can shorten the on-disk segment size. */ 86 .sdata : { *(.sdata) } 87 _edata = .; 88 PROVIDE (edata = .); 89 .sbss : 90 { 91 PROVIDE (__sbss_start = .); 92 *(.sbss) 93 *(.scommon) 94 *(.dynsbss) 95 PROVIDE (__sbss_end = .); 96 } 97 .plt : { *(.plt) } 98 .bss : 99 { 100 PROVIDE (__bss_start = .); 101 *(.dynbss) 102 *(.bss) 103 *(COMMON) 104 } 105 . = ALIGN(4096); 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