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