1/* $FreeBSD: head/sys/conf/ldscript.powerpc 78388 2001-06-17 09:39:44Z benno $ */ 2 3OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc") 4OUTPUT_ARCH(powerpc) |
5ENTRY(__start) 6SEARCH_DIR(/usr/lib); |
7/* Do we need any of these for elf? 8 __DYNAMIC = 0; */ 9PROVIDE (__stack = 0); |
10SECTIONS 11{ 12 /* Read-only sections, merged into text segment: */ |
13 . = 0x00100000 + SIZEOF_HEADERS; |
14 .interp : { *(.interp) } 15 .hash : { *(.hash) } 16 .dynsym : { *(.dynsym) } 17 .dynstr : { *(.dynstr) } 18 .gnu.version : { *(.gnu.version) } 19 .gnu.version_d : { *(.gnu.version_d) } 20 .gnu.version_r : { *(.gnu.version_r) } |
21 .rela.text : 22 { *(.rela.text) *(.rela.gnu.linkonce.t*) } |
23 .rela.data : 24 { *(.rela.data) *(.rela.gnu.linkonce.d*) } |
25 .rela.rodata : 26 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } |
27 .rela.got : { *(.rela.got) } |
28 .rela.got1 : { *(.rela.got1) } 29 .rela.got2 : { *(.rela.got2) } |
30 .rela.ctors : { *(.rela.ctors) } |
31 .rela.dtors : { *(.rela.dtors) } |
32 .rela.init : { *(.rela.init) } |
33 .rela.fini : { *(.rela.fini) } |
34 .rela.bss : { *(.rela.bss) } |
35 .rela.plt : { *(.rela.plt) } |
36 .rela.sdata : { *(.rela.sdata) } 37 .rela.sbss : { *(.rela.sbss) } 38 .rela.sdata2 : { *(.rela.sdata2) } 39 .rela.sbss2 : { *(.rela.sbss2) } |
40 .text : 41 { 42 *(.text) |
43 /* .gnu.warning sections are handled specially by elf32.em. */ 44 *(.gnu.warning) 45 *(.gnu.linkonce.t*) |
46 } =0 |
47 _etext = .; 48 PROVIDE (etext = .); |
49 .init : { *(.init) } =0 50 .fini : { *(.fini) } =0 |
51 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 52 .rodata1 : { *(.rodata1) } |
53 .sdata2 : { *(.sdata2) } 54 .sbss2 : { *(.sbss2) } |
55 /* Adjust the address for the data segment. We want to adjust up to 56 the same address within the page on the next page up. */ 57 . = .; 58 .data : 59 { 60 *(.data) 61 *(.gnu.linkonce.d*) 62 CONSTRUCTORS 63 } 64 .data1 : { *(.data1) } |
65 .got1 : { *(.got1) } 66 .dynamic : { *(.dynamic) } 67 /* Put .ctors and .dtors next to the .got2 section, so that the pointers 68 get relocated with -mrelocatable. Also put in the .fixup pointers. 69 The current compiler no longer needs this, but keep it around for 2.7.2 */ 70 PROVIDE (_GOT2_START_ = .); 71 .got2 : { *(.got2) } 72 PROVIDE (__CTOR_LIST__ = .); 73 .ctors : { *(.ctors) } 74 PROVIDE (__CTOR_END__ = .); 75 PROVIDE (__DTOR_LIST__ = .); 76 .dtors : { *(.dtors) } 77 PROVIDE (__DTOR_END__ = .); 78 PROVIDE (_FIXUP_START_ = .); 79 .fixup : { *(.fixup) } 80 PROVIDE (_FIXUP_END_ = .); 81 PROVIDE (_GOT2_END_ = .); 82 PROVIDE (_GOT_START_ = .); 83 .got : { *(.got) } 84 .got.plt : { *(.got.plt) } 85 PROVIDE (_GOT_END_ = .); |
86 /* We want the small data sections together, so single-instruction offsets 87 can access them all, and initialized data all before uninitialized, so 88 we can shorten the on-disk segment size. */ 89 .sdata : { *(.sdata) } 90 _edata = .; 91 PROVIDE (edata = .); |
92 .sbss : 93 { 94 PROVIDE (__sbss_start = .); 95 *(.sbss) 96 *(.scommon) 97 *(.dynsbss) 98 PROVIDE (__sbss_end = .); 99 } 100 .plt : { *(.plt) } |
101 .bss : 102 { |
103 PROVIDE (__bss_start = .); |
104 *(.dynbss) 105 *(.bss) 106 *(COMMON) 107 } |
108 _end = . ; 109 PROVIDE (end = .); 110 /* Stabs debugging sections. */ 111 .stab 0 : { *(.stab) } 112 .stabstr 0 : { *(.stabstr) } |
113 /* DWARF debug sections. 114 Symbols in the DWARF debugging sections are relative to the beginning 115 of the section so we begin them at 0. */ 116 /* DWARF 1 */ 117 .debug 0 : { *(.debug) } 118 .line 0 : { *(.line) } 119 /* GNU DWARF 1 extensions */ 120 .debug_srcinfo 0 : { *(.debug_srcinfo) } --- 20 unchanged lines hidden --- |