1 1.1 cherry /* $FreeBSD$ */ 2 1.1 cherry OUTPUT_FORMAT("elf64-ia64-little", "elf64-ia64-little", "elf64-ia64-little") 3 1.1 cherry OUTPUT_ARCH(ia64) 4 1.1 cherry ENTRY(start) 5 1.1 cherry SEARCH_DIR(/usr/lib); 6 1.1 cherry kernel_text = 0xe000000004000000; 7 1.1 cherry SECTIONS 8 1.1 cherry { 9 1.1 cherry /* Read-only sections, merged into text segment: */ 10 1.1 cherry . = kernel_text + SIZEOF_HEADERS; 11 1.1 cherry .interp : { *(.interp) } 12 1.1 cherry .hash : { *(.hash) } 13 1.1 cherry .dynsym : { *(.dynsym) } 14 1.1 cherry .dynstr : { *(.dynstr) } 15 1.1 cherry .gnu.version : { *(.gnu.version) } 16 1.1 cherry .gnu.version_d : { *(.gnu.version_d) } 17 1.1 cherry .gnu.version_r : { *(.gnu.version_r) } 18 1.1 cherry .rela.init : { *(.rela.init) } 19 1.1 cherry .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } 20 1.1 cherry .rela.fini : { *(.rela.fini) } 21 1.1 cherry .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } 22 1.1 cherry .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } 23 1.1 cherry .rela.ctors : { *(.rela.ctors) } 24 1.1 cherry .rela.dtors : { *(.rela.dtors) } 25 1.1 cherry .rela.got : { *(.rela.got) } 26 1.1 cherry .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) } 27 1.1 cherry .rela.sbss : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) } 28 1.1 cherry .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) } 29 1.1 cherry .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) } 30 1.1 cherry .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } 31 1.1 cherry .rela.plt : { *(.rela.plt) } 32 1.1 cherry .rela.IA_64.pltoff : { *(.rela.IA_64.pltoff) } 33 1.1 cherry PROVIDE (btext = .); 34 1.1 cherry .init : 35 1.1 cherry { 36 1.1 cherry *(.init) 37 1.1 cherry } =0x00300000010070000002000001000400 38 1.1 cherry .plt : { *(.plt) } 39 1.1 cherry .text : 40 1.1 cherry { 41 1.1 cherry *(.text .stub .text.* .gnu.linkonce.t.*) 42 1.1 cherry /* .gnu.warning sections are handled specially by elf32.em. */ 43 1.1 cherry *(.gnu.warning) 44 1.1 cherry } =0x00300000010070000002000001000400 45 1.1 cherry .fini : 46 1.1 cherry { 47 1.1 cherry *(.fini) 48 1.1 cherry } =0x00300000010070000002000001000400 49 1.1 cherry _etext = .; 50 1.1 cherry PROVIDE (etext = .); 51 1.1 cherry .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } 52 1.1 cherry .rodata1 : { *(.rodata1) } 53 1.1 cherry .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } 54 1.1 cherry .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } 55 1.1 cherry .opd : { *(.opd) } 56 1.1 cherry .IA_64.unwind_info : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) } 57 1.1 cherry .IA_64.unwind : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) } 58 1.1 cherry /* Adjust the address for the data segment. We want to adjust up to 59 1.1 cherry the same address within the page on the next page up. */ 60 1.1 cherry . = . + 8192; 61 1.1 cherry .data : 62 1.1 cherry { 63 1.1 cherry *(.data.proc0 .data .data.* .gnu.linkonce.d.*) 64 1.1 cherry SORT(CONSTRUCTORS) 65 1.1 cherry } 66 1.1 cherry .data1 : { *(.data1) } 67 1.1 cherry .dynamic : { *(.dynamic) } 68 1.1 cherry .ctors : 69 1.1 cherry { 70 1.1 cherry *(.ctors) 71 1.1 cherry *(SORT(.ctors.*)) 72 1.1 cherry } 73 1.1 cherry .dtors : 74 1.1 cherry { 75 1.1 cherry *(.dtors) 76 1.1 cherry *(SORT(.dtors.*)) 77 1.1 cherry } 78 1.1 cherry . = ALIGN(16); 79 1.1 cherry __gp = . + 0x200000; 80 1.1 cherry .got : { *(.got.plt) *(.got) } 81 1.1 cherry .IA_64.pltoff : { *(.IA_64.pltoff) } 82 1.1 cherry /* We want the small data sections together, so single-instruction offsets 83 1.1 cherry can access them all, and initialized data all before uninitialized, so 84 1.1 cherry we can shorten the on-disk segment size. */ 85 1.1 cherry .sdata : 86 1.1 cherry { 87 1.1 cherry *(.sdata .sdata.* .gnu.linkonce.s.*) 88 1.1 cherry } 89 1.1 cherry _edata = .; 90 1.1 cherry PROVIDE (edata = .); 91 1.1 cherry __bss_start = .; 92 1.1 cherry .sbss : 93 1.1 cherry { 94 1.1 cherry PROVIDE (__sbss_start = .); 95 1.1 cherry PROVIDE (___sbss_start = .); 96 1.1 cherry *(.dynsbss) 97 1.1 cherry *(.sbss .sbss.* .gnu.linkonce.sb.*) 98 1.1 cherry *(.scommon) 99 1.1 cherry PROVIDE (__sbss_end = .); 100 1.1 cherry PROVIDE (___sbss_end = .); 101 1.1 cherry } 102 1.1 cherry .bss : 103 1.1 cherry { 104 1.1 cherry *(.dynbss) 105 1.1 cherry *(.bss .bss.* .gnu.linkonce.b.*) 106 1.1 cherry *(COMMON) 107 1.1 cherry /* Align here to ensure that the .bss section occupies space up to 108 1.1 cherry _end. Align after .bss to ensure correct alignment even if the 109 1.1 cherry .bss section disappears because there are no input sections. */ 110 1.1 cherry . = ALIGN(64 / 8); 111 1.1 cherry } 112 1.1 cherry . = ALIGN(64 / 8); 113 1.1 cherry _end = .; 114 1.1 cherry PROVIDE (end = .); 115 1.1 cherry /* Stabs debugging sections. */ 116 1.1 cherry .stab 0 : { *(.stab) } 117 1.1 cherry .stabstr 0 : { *(.stabstr) } 118 1.1 cherry .stab.excl 0 : { *(.stab.excl) } 119 1.1 cherry .stab.exclstr 0 : { *(.stab.exclstr) } 120 1.1 cherry .stab.index 0 : { *(.stab.index) } 121 1.1 cherry .stab.indexstr 0 : { *(.stab.indexstr) } 122 1.1 cherry .comment 0 : { *(.comment) } 123 1.1 cherry /* DWARF debug sections. 124 1.1 cherry Symbols in the DWARF debugging sections are relative to the beginning 125 1.1 cherry of the section so we begin them at 0. */ 126 1.1 cherry /* DWARF 1 */ 127 1.1 cherry .debug 0 : { *(.debug) } 128 1.1 cherry .line 0 : { *(.line) } 129 1.1 cherry /* GNU DWARF 1 extensions */ 130 1.1 cherry .debug_srcinfo 0 : { *(.debug_srcinfo) } 131 1.1 cherry .debug_sfnames 0 : { *(.debug_sfnames) } 132 1.1 cherry /* DWARF 1.1 and DWARF 2 */ 133 1.1 cherry .debug_aranges 0 : { *(.debug_aranges) } 134 1.1 cherry .debug_pubnames 0 : { *(.debug_pubnames) } 135 1.1 cherry /* DWARF 2 */ 136 1.1 cherry .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } 137 1.1 cherry .debug_abbrev 0 : { *(.debug_abbrev) } 138 1.1 cherry .debug_line 0 : { *(.debug_line) } 139 1.1 cherry .debug_frame 0 : { *(.debug_frame) } 140 1.1 cherry .debug_str 0 : { *(.debug_str) } 141 1.1 cherry .debug_loc 0 : { *(.debug_loc) } 142 1.1 cherry .debug_macinfo 0 : { *(.debug_macinfo) } 143 1.1 cherry /* SGI/MIPS DWARF 2 extensions */ 144 1.1 cherry .debug_weaknames 0 : { *(.debug_weaknames) } 145 1.1 cherry .debug_funcnames 0 : { *(.debug_funcnames) } 146 1.1 cherry .debug_typenames 0 : { *(.debug_typenames) } 147 1.1 cherry .debug_varnames 0 : { *(.debug_varnames) } 148 1.1 cherry } 149