1/* $FreeBSD: head/sys/conf/ldscript.powerpc 55825 2000-01-11 15:35:16Z peter $ */ 2OUTPUT_FORMAT("elf64-alpha", "elf64-alpha", "elf64-alpha") 3OUTPUT_ARCH(alpha)
| 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)
|
4ENTRY(__start) 5SEARCH_DIR(/usr/lib);
| 5ENTRY(__start) 6SEARCH_DIR(/usr/lib);
|
6kernel_text = 0xfffffc0000300000;
| 7/* Do we need any of these for elf? 8 __DYNAMIC = 0; */ 9PROVIDE (__stack = 0);
|
7SECTIONS 8{ 9 /* Read-only sections, merged into text segment: */
| 10SECTIONS 11{ 12 /* Read-only sections, merged into text segment: */
|
10 . = 0xfffffc0000300000 + SIZEOF_HEADERS;
| 13 . = 0x00100000 + SIZEOF_HEADERS;
|
11 .interp : { *(.interp) } 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) }
| 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) }
|
18 .rel.text : 19 { *(.rel.text) *(.rel.gnu.linkonce.t*) }
| |
20 .rela.text : 21 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
| 21 .rela.text : 22 { *(.rela.text) *(.rela.gnu.linkonce.t*) }
|
22 .rel.data : 23 { *(.rel.data) *(.rel.gnu.linkonce.d*) }
| |
24 .rela.data : 25 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
| 23 .rela.data : 24 { *(.rela.data) *(.rela.gnu.linkonce.d*) }
|
26 .rel.rodata : 27 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
| |
28 .rela.rodata : 29 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
| 25 .rela.rodata : 26 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
|
30 .rel.got : { *(.rel.got) }
| |
31 .rela.got : { *(.rela.got) }
| 27 .rela.got : { *(.rela.got) }
|
32 .rel.ctors : { *(.rel.ctors) }
| 28 .rela.got1 : { *(.rela.got1) } 29 .rela.got2 : { *(.rela.got2) }
|
33 .rela.ctors : { *(.rela.ctors) }
| 30 .rela.ctors : { *(.rela.ctors) }
|
34 .rel.dtors : { *(.rel.dtors) }
| |
35 .rela.dtors : { *(.rela.dtors) }
| 31 .rela.dtors : { *(.rela.dtors) }
|
36 .rel.init : { *(.rel.init) }
| |
37 .rela.init : { *(.rela.init) }
| 32 .rela.init : { *(.rela.init) }
|
38 .rel.fini : { *(.rel.fini) }
| |
39 .rela.fini : { *(.rela.fini) }
| 33 .rela.fini : { *(.rela.fini) }
|
40 .rel.bss : { *(.rel.bss) }
| |
41 .rela.bss : { *(.rela.bss) }
| 34 .rela.bss : { *(.rela.bss) }
|
42 .rel.plt : { *(.rel.plt) }
| |
43 .rela.plt : { *(.rela.plt) }
| 35 .rela.plt : { *(.rela.plt) }
|
44 .init : { *(.init) } =0x47ff041f
| 36 .rela.sdata : { *(.rela.sdata) } 37 .rela.sbss : { *(.rela.sbss) } 38 .rela.sdata2 : { *(.rela.sdata2) } 39 .rela.sbss2 : { *(.rela.sbss2) }
|
45 .text : 46 { 47 *(.text)
| 40 .text : 41 { 42 *(.text)
|
48 *(.stub)
| |
49 /* .gnu.warning sections are handled specially by elf32.em. */ 50 *(.gnu.warning) 51 *(.gnu.linkonce.t*)
| 43 /* .gnu.warning sections are handled specially by elf32.em. */ 44 *(.gnu.warning) 45 *(.gnu.linkonce.t*)
|
52 } =0x47ff041f
| 46 } =0
|
53 _etext = .; 54 PROVIDE (etext = .);
| 47 _etext = .; 48 PROVIDE (etext = .);
|
55 .fini : { *(.fini) } =0x47ff041f
| 49 .init : { *(.init) } =0 50 .fini : { *(.fini) } =0
|
56 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 57 .rodata1 : { *(.rodata1) }
| 51 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 52 .rodata1 : { *(.rodata1) }
|
58 .reginfo : { *(.reginfo) }
| 53 .sdata2 : { *(.sdata2) } 54 .sbss2 : { *(.sbss2) }
|
59 /* Adjust the address for the data segment. We want to adjust up to 60 the same address within the page on the next page up. */ 61 . = .; 62 .data : 63 { 64 *(.data) 65 *(.gnu.linkonce.d*) 66 CONSTRUCTORS 67 } 68 .data1 : { *(.data1) }
| 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) }
|
69 .ctors : 70 { 71 *(.ctors) 72 } 73 .dtors : 74 { 75 *(.dtors) 76 } 77 .plt : { *(.plt) } 78 .got : { *(.got.plt) *(.got) } 79 .dynamic : { *(.dynamic) }
| 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_ = .);
|
80 /* We want the small data sections together, so single-instruction offsets 81 can access them all, and initialized data all before uninitialized, so 82 we can shorten the on-disk segment size. */ 83 .sdata : { *(.sdata) } 84 _edata = .; 85 PROVIDE (edata = .);
| 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 = .);
|
86 __bss_start = .; 87 .sbss : { *(.sbss) *(.scommon) }
| 92 .sbss : 93 { 94 PROVIDE (__sbss_start = .); 95 *(.sbss) 96 *(.scommon) 97 *(.dynsbss) 98 PROVIDE (__sbss_end = .); 99 } 100 .plt : { *(.plt) }
|
88 .bss : 89 {
| 101 .bss : 102 {
|
| 103 PROVIDE (__bss_start = .);
|
90 *(.dynbss) 91 *(.bss) 92 *(COMMON) 93 }
| 104 *(.dynbss) 105 *(.bss) 106 *(COMMON) 107 }
|
94 . = ALIGN(64 / 8);
| |
95 _end = . ; 96 PROVIDE (end = .); 97 /* Stabs debugging sections. */ 98 .stab 0 : { *(.stab) } 99 .stabstr 0 : { *(.stabstr) }
| 108 _end = . ; 109 PROVIDE (end = .); 110 /* Stabs debugging sections. */ 111 .stab 0 : { *(.stab) } 112 .stabstr 0 : { *(.stabstr) }
|
100 .stab.excl 0 : { *(.stab.excl) } 101 .stab.exclstr 0 : { *(.stab.exclstr) } 102 .stab.index 0 : { *(.stab.index) } 103 .stab.indexstr 0 : { *(.stab.indexstr) } 104 .comment 0 : { *(.comment) }
| |
105 /* DWARF debug sections. 106 Symbols in the DWARF debugging sections are relative to the beginning 107 of the section so we begin them at 0. */ 108 /* DWARF 1 */ 109 .debug 0 : { *(.debug) } 110 .line 0 : { *(.line) } 111 /* GNU DWARF 1 extensions */ 112 .debug_srcinfo 0 : { *(.debug_srcinfo) }
--- 20 unchanged lines hidden --- | 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 --- |