ldscript.amd64 revision 206376
1206376Srpaulo/* $FreeBSD: head/sys/boot/i386/efi/ldscript.amd64 206376 2010-04-07 18:16:05Z rpaulo $ */ 2206376SrpauloOUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") 3206376SrpauloOUTPUT_ARCH(i386:x86-64) 4206376SrpauloENTRY(_start) 5206376SrpauloSECTIONS 6206376Srpaulo{ 7206376Srpaulo /* Read-only sections, merged into text segment: */ 8206376Srpaulo . = 0; 9206376Srpaulo ImageBase = .; 10206376Srpaulo . = SIZEOF_HEADERS; 11206376Srpaulo . = ALIGN(4096); 12206376Srpaulo .eh_frame : { 13206376Srpaulo *(.eh_frame) 14206376Srpaulo } 15206376Srpaulo .text : { 16206376Srpaulo *(.text .stub .text.* .gnu.linkonce.t.*) 17206376Srpaulo /* .gnu.warning sections are handled specially by elf32.em. */ 18206376Srpaulo *(.gnu.warning) 19206376Srpaulo *(.plt) 20206376Srpaulo } =0x00300000010070000002000001000400 21206376Srpaulo . = ALIGN(4096); 22206376Srpaulo .data : { 23206376Srpaulo *(.rodata .rodata.* .gnu.linkonce.r.*) 24206376Srpaulo *(.rodata1) 25206376Srpaulo *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) 26206376Srpaulo *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) 27206376Srpaulo *(.opd) 28206376Srpaulo *(.data .data.* .gnu.linkonce.d.*) 29206376Srpaulo *(.data1) 30206376Srpaulo *(.plabel) 31206376Srpaulo *(.dynbss) 32206376Srpaulo *(.bss .bss.* .gnu.linkonce.b.*) 33206376Srpaulo *(COMMON) 34206376Srpaulo } 35206376Srpaulo . = ALIGN(4096); 36206376Srpaulo set_Xcommand_set : { 37206376Srpaulo __start_set_Xcommand_set = .; 38206376Srpaulo *(set_Xcommand_set) 39206376Srpaulo __stop_set_Xcommand_set = .; 40206376Srpaulo } 41206376Srpaulo . = ALIGN(4096); 42206376Srpaulo __gp = .; 43206376Srpaulo .sdata : { 44206376Srpaulo *(.got.plt .got) 45206376Srpaulo *(.sdata .sdata.* .gnu.linkonce.s.*) 46206376Srpaulo *(dynsbss) 47206376Srpaulo *(.sbss .sbss.* .gnu.linkonce.sb.*) 48206376Srpaulo *(.scommon) 49206376Srpaulo } 50206376Srpaulo . = ALIGN(4096); 51206376Srpaulo .dynamic : { *(.dynamic) } 52206376Srpaulo . = ALIGN(4096); 53206376Srpaulo .rel.dyn : { 54206376Srpaulo *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) 55206376Srpaulo *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) 56206376Srpaulo *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) 57206376Srpaulo *(.rel.got) 58206376Srpaulo *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) 59206376Srpaulo *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) 60206376Srpaulo *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) 61206376Srpaulo *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) 62206376Srpaulo *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) 63206376Srpaulo *(.rel.plt) 64206376Srpaulo *(.relset_*) 65206376Srpaulo *(.rel.dyn .rel.dyn.*) 66206376Srpaulo } 67206376Srpaulo . = ALIGN(4096); 68206376Srpaulo .reloc : { *(.reloc) } 69206376Srpaulo . = ALIGN(4096); 70206376Srpaulo .hash : { *(.hash) } 71206376Srpaulo . = ALIGN(4096); 72206376Srpaulo .dynsym : { *(.dynsym) } 73206376Srpaulo . = ALIGN(4096); 74206376Srpaulo .dynstr : { *(.dynstr) } 75206376Srpaulo} 76