1/* $FreeBSD$ */ 2OUTPUT_FORMAT("elf64-alpha", "elf64-alpha", "elf64-alpha") 3OUTPUT_ARCH(alpha) 4ENTRY(__start) 5SEARCH_DIR(/usr/lib); 6kernel_text = 0xfffffc0000300000; 7SECTIONS 8{ 9 /* Read-only sections, merged into text segment: */ 10 . = 0xfffffc0000300000 + 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) } 18 .rel.text : 19 { *(.rel.text) *(.rel.gnu.linkonce.t*) } 20 .rela.text : 21 { *(.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*) } 26 .rel.rodata : 27 { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 28 .rela.rodata : 29 { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 30 .rel.got : { *(.rel.got) } 31 .rela.got : { *(.rela.got) } 32 .rel.ctors : { *(.rel.ctors) } 33 .rela.ctors : { *(.rela.ctors) } 34 .rel.dtors : { *(.rel.dtors) } 35 .rela.dtors : { *(.rela.dtors) } 36 .rel.init : { *(.rel.init) } 37 .rela.init : { *(.rela.init) } 38 .rel.fini : { *(.rel.fini) } 39 .rela.fini : { *(.rela.fini) } 40 .rel.bss : { *(.rel.bss) } 41 .rela.bss : { *(.rela.bss) } 42 .rel.plt : { *(.rel.plt) } 43 .rela.plt : { *(.rela.plt) } 44 .init : { *(.init) } =0x47ff041f 45 .text : 46 { 47 *(.text) 48 *(.stub) 49 /* .gnu.warning sections are handled specially by elf32.em. */ 50 *(.gnu.warning) 51 *(.gnu.linkonce.t*) 52 } =0x47ff041f 53 _etext = .; 54 PROVIDE (etext = .); 55 .fini : { *(.fini) } =0x47ff041f 56 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 57 .rodata1 : { *(.rodata1) } 58 .reginfo : { *(.reginfo) } 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) } 69 .ctors : 70 { 71 *(.ctors) 72 } 73 .dtors : 74 { 75 *(.dtors) 76 } 77 .plt : { *(.plt) } 78 .got : { *(.got.plt) *(.got) } 79 .dynamic : { *(.dynamic) } 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 __bss_start = .; 87 .sbss : { *(.sbss) *(.scommon) } 88 .bss : 89 { 90 *(.dynbss) 91 *(.bss) 92 *(COMMON) 93 } 94 . = ALIGN(64 / 8); 95 _end = . ; 96 PROVIDE (end = .); 97 /* Stabs debugging sections. */ 98 .stab 0 : { *(.stab) } 99 .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) } 113 .debug_sfnames 0 : { *(.debug_sfnames) } 114 /* DWARF 1.1 and DWARF 2 */ 115 .debug_aranges 0 : { *(.debug_aranges) } 116 .debug_pubnames 0 : { *(.debug_pubnames) } 117 /* DWARF 2 */ 118 .debug_info 0 : { *(.debug_info) } 119 .debug_abbrev 0 : { *(.debug_abbrev) } 120 .debug_line 0 : { *(.debug_line) } 121 .debug_frame 0 : { *(.debug_frame) } 122 .debug_str 0 : { *(.debug_str) } 123 .debug_loc 0 : { *(.debug_loc) } 124 .debug_macinfo 0 : { *(.debug_macinfo) } 125 /* SGI/MIPS DWARF 2 extensions */ 126 .debug_weaknames 0 : { *(.debug_weaknames) } 127 .debug_funcnames 0 : { *(.debug_funcnames) } 128 .debug_typenames 0 : { *(.debug_typenames) } 129 .debug_varnames 0 : { *(.debug_varnames) } 130 /* These must appear regardless of . */ 131} 132 133