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 kernel_text = 0xe000000004000000; 6 1.1 cherry SECTIONS 7 1.1 cherry { 8 1.1 cherry /* Read-only sections, merged into text segment: */ 9 1.1 cherry . = kernel_text + SIZEOF_HEADERS; 10 1.1 cherry PROVIDE (btext = .); 11 1.1 cherry .plt : { *(.plt) } 12 1.1 cherry .text : 13 1.1 cherry { 14 1.1 cherry *(.text .stub .text.* .gnu.linkonce.t.*) 15 1.1 cherry /* .gnu.warning sections are handled specially by elf32.em. */ 16 1.1 cherry *(.gnu.warning) 17 1.1 cherry } =0x00300000010070000002000001000400 18 1.1 cherry _etext = .; 19 1.1 cherry PROVIDE (etext = .); 20 1.1 cherry .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } 21 1.1 cherry .rodata1 : { *(.rodata1) } 22 1.1 cherry .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } 23 1.1 cherry .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } 24 1.1 cherry .opd : { *(.opd) } 25 1.1 cherry .IA_64.unwind_info : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) } 26 1.1 cherry .IA_64.unwind : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) } 27 1.1 cherry /* Adjust the address for the data segment. We want to adjust up to 28 1.1 cherry the same address within the page on the next page up. */ 29 1.1 cherry . = . + 8192; 30 1.1 cherry .data : 31 1.1 cherry { 32 1.1 cherry *(.data.proc0 .data .data.* .gnu.linkonce.d.*) 33 1.1 cherry SORT(CONSTRUCTORS) 34 1.1 cherry } 35 1.1 cherry .data1 : { *(.data1) } 36 1.1 cherry .dynamic : { *(.dynamic) } 37 1.1 cherry . = ALIGN(16); 38 1.1 cherry __gp = . + 0x200000; 39 1.1 cherry .got : { *(.got.plt) *(.got) } 40 1.1 cherry .IA_64.pltoff : { *(.IA_64.pltoff) } 41 1.1 cherry /* We want the small data sections together, so single-instruction offsets 42 1.1 cherry can access them all, and initialized data all before uninitialized, so 43 1.1 cherry we can shorten the on-disk segment size. */ 44 1.1 cherry .sdata : 45 1.1 cherry { 46 1.1 cherry *(.sdata .sdata.* .gnu.linkonce.s.*) 47 1.1 cherry } 48 1.1 cherry _edata = .; 49 1.1 cherry PROVIDE (edata = .); 50 1.1 cherry __bss_start = .; 51 1.1 cherry .sbss : 52 1.1 cherry { 53 1.1 cherry PROVIDE (__sbss_start = .); 54 1.1 cherry PROVIDE (___sbss_start = .); 55 1.1 cherry *(.dynsbss) 56 1.1 cherry *(.sbss .sbss.* .gnu.linkonce.sb.*) 57 1.1 cherry *(.scommon) 58 1.1 cherry PROVIDE (__sbss_end = .); 59 1.1 cherry PROVIDE (___sbss_end = .); 60 1.1 cherry } 61 1.1 cherry .bss : 62 1.1 cherry { 63 1.2 uebayasi *(.dynbss) 64 1.2 uebayasi *(.bss .bss.* .gnu.linkonce.b.*) 65 1.2 uebayasi *(COMMON) 66 1.2 uebayasi /* Align here to ensure that the .bss section occupies space up to 67 1.2 uebayasi _end. Align after .bss to ensure correct alignment even if the 68 1.2 uebayasi .bss section disappears because there are no input sections. */ 69 1.2 uebayasi . = ALIGN(64 / 8); 70 1.1 cherry } 71 1.1 cherry . = ALIGN(64 / 8); 72 1.1 cherry _end = .; 73 1.1 cherry PROVIDE (end = .); 74 1.1 cherry /* Stabs debugging sections. */ 75 1.1 cherry .stab 0 : { *(.stab) } 76 1.1 cherry .stabstr 0 : { *(.stabstr) } 77 1.1 cherry .stab.excl 0 : { *(.stab.excl) } 78 1.1 cherry .stab.exclstr 0 : { *(.stab.exclstr) } 79 1.1 cherry .stab.index 0 : { *(.stab.index) } 80 1.1 cherry .stab.indexstr 0 : { *(.stab.indexstr) } 81 1.1 cherry .comment 0 : { *(.comment) } 82 1.1 cherry /* DWARF debug sections. 83 1.1 cherry Symbols in the DWARF debugging sections are relative to the beginning 84 1.1 cherry of the section so we begin them at 0. */ 85 1.1 cherry /* DWARF 1 */ 86 1.1 cherry .debug 0 : { *(.debug) } 87 1.1 cherry .line 0 : { *(.line) } 88 1.1 cherry /* GNU DWARF 1 extensions */ 89 1.1 cherry .debug_srcinfo 0 : { *(.debug_srcinfo) } 90 1.1 cherry .debug_sfnames 0 : { *(.debug_sfnames) } 91 1.1 cherry /* DWARF 1.1 and DWARF 2 */ 92 1.1 cherry .debug_aranges 0 : { *(.debug_aranges) } 93 1.1 cherry .debug_pubnames 0 : { *(.debug_pubnames) } 94 1.1 cherry /* DWARF 2 */ 95 1.1 cherry .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } 96 1.1 cherry .debug_abbrev 0 : { *(.debug_abbrev) } 97 1.1 cherry .debug_line 0 : { *(.debug_line) } 98 1.1 cherry .debug_frame 0 : { *(.debug_frame) } 99 1.1 cherry .debug_str 0 : { *(.debug_str) } 100 1.1 cherry .debug_loc 0 : { *(.debug_loc) } 101 1.1 cherry .debug_macinfo 0 : { *(.debug_macinfo) } 102 1.1 cherry /* SGI/MIPS DWARF 2 extensions */ 103 1.1 cherry .debug_weaknames 0 : { *(.debug_weaknames) } 104 1.1 cherry .debug_funcnames 0 : { *(.debug_funcnames) } 105 1.1 cherry .debug_typenames 0 : { *(.debug_typenames) } 106 1.1 cherry .debug_varnames 0 : { *(.debug_varnames) } 107 1.1 cherry } 108