145501SjdpOUTPUT_FORMAT("elf32-i386", "elf32-i386", 245501Sjdp "elf32-i386") 345501SjdpOUTPUT_ARCH(i386) 445501SjdpENTRY(_start) 545501SjdpSEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/usr/src/tmp/usr/i386-unknown-freebsdelf/lib); 645501Sjdp/* Do we need any of these for elf? 745501Sjdp __DYNAMIC = 0; */ 845501SjdpSECTIONS 945501Sjdp{ 1045501Sjdp /* Read-only sections, merged into text segment: */ 1145501Sjdp . = 0x08000000 + SIZEOF_HEADERS; 1245501Sjdp .interp : { *(.interp) } 1345501Sjdp .hash : { *(.hash) } 1445501Sjdp .dynsym : { *(.dynsym) } 1545501Sjdp .dynstr : { *(.dynstr) } 1645501Sjdp .gnu.version : { *(.gnu.version) } 1745501Sjdp .gnu.version_d : { *(.gnu.version_d) } 1845501Sjdp .gnu.version_r : { *(.gnu.version_r) } 1945501Sjdp .rel.text : 2045501Sjdp { *(.rel.text) *(.rel.gnu.linkonce.t*) } 2145501Sjdp .rela.text : 2245501Sjdp { *(.rela.text) *(.rela.gnu.linkonce.t*) } 2345501Sjdp .rel.data : 2445501Sjdp { *(.rel.data) *(.rel.gnu.linkonce.d*) } 2545501Sjdp .rela.data : 2645501Sjdp { *(.rela.data) *(.rela.gnu.linkonce.d*) } 2745501Sjdp .rel.rodata : 2845501Sjdp { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } 2945501Sjdp .rela.rodata : 3045501Sjdp { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } 3145501Sjdp .rel.got : { *(.rel.got) } 3245501Sjdp .rela.got : { *(.rela.got) } 3345501Sjdp .rel.ctors : { *(.rel.ctors) } 3445501Sjdp .rela.ctors : { *(.rela.ctors) } 3545501Sjdp .rel.dtors : { *(.rel.dtors) } 3645501Sjdp .rela.dtors : { *(.rela.dtors) } 3745501Sjdp .rel.init : { *(.rel.init) } 3845501Sjdp .rela.init : { *(.rela.init) } 3945501Sjdp .rel.fini : { *(.rel.fini) } 4045501Sjdp .rela.fini : { *(.rela.fini) } 4145501Sjdp .rel.bss : { *(.rel.bss) } 4245501Sjdp .rela.bss : { *(.rela.bss) } 4345501Sjdp .rel.plt : { *(.rel.plt) } 4445501Sjdp .rela.plt : { *(.rela.plt) } 4545501Sjdp .init : { *(.init) } =0x9090 4645501Sjdp .plt : { *(.plt) } 4745501Sjdp .text : 4845501Sjdp { 4945501Sjdp *(.text) 5045501Sjdp *(.stub) 5145501Sjdp /* .gnu.warning sections are handled specially by elf32.em. */ 5245501Sjdp *(.gnu.warning) 5345501Sjdp *(.gnu.linkonce.t*) 5445501Sjdp } =0x9090 5545501Sjdp _etext = .; 5645501Sjdp PROVIDE (etext = .); 5745501Sjdp .fini : { *(.fini) } =0x9090 5845501Sjdp .rodata : { *(.rodata) *(.gnu.linkonce.r*) } 5945501Sjdp .rodata1 : { *(.rodata1) } 6045501Sjdp /* Adjust the address for the data segment. We want to adjust up to 6145501Sjdp the same address within the page on the next page up. */ 6245501Sjdp . = ALIGN(0x1000) + (. & (0x1000 - 1)); 6345501Sjdp .data : 6445501Sjdp { 6545501Sjdp *(.data) 6645501Sjdp *(.gnu.linkonce.d*) 6745501Sjdp CONSTRUCTORS 6845501Sjdp } 6945501Sjdp .data1 : { *(.data1) } 7045501Sjdp .ctors : 7145501Sjdp { 7245501Sjdp *(.ctors) 7345501Sjdp } 7445501Sjdp .dtors : 7545501Sjdp { 7645501Sjdp *(.dtors) 7745501Sjdp } 7845501Sjdp .got : { *(.got.plt) *(.got) } 7945501Sjdp .dynamic : { *(.dynamic) } 8045501Sjdp /* We want the small data sections together, so single-instruction offsets 8145501Sjdp can access them all, and initialized data all before uninitialized, so 8245501Sjdp we can shorten the on-disk segment size. */ 8345501Sjdp .sdata : { *(.sdata) } 8445501Sjdp _edata = .; 8545501Sjdp PROVIDE (edata = .); 8645501Sjdp __bss_start = .; 8745501Sjdp .sbss : { *(.sbss) *(.scommon) } 8845501Sjdp .bss : 8945501Sjdp { 9045501Sjdp *(.dynbss) 9145501Sjdp *(.bss) 9245501Sjdp *(COMMON) 9345501Sjdp } 9445501Sjdp . = ALIGN(32 / 8); 9545501Sjdp _end = . ; 9645501Sjdp PROVIDE (end = .); 9745501Sjdp /* Stabs debugging sections. */ 9845501Sjdp .stab 0 : { *(.stab) } 9945501Sjdp .stabstr 0 : { *(.stabstr) } 10045501Sjdp .stab.excl 0 : { *(.stab.excl) } 10145501Sjdp .stab.exclstr 0 : { *(.stab.exclstr) } 10245501Sjdp .stab.index 0 : { *(.stab.index) } 10345501Sjdp .stab.indexstr 0 : { *(.stab.indexstr) } 10445501Sjdp .comment 0 : { *(.comment) } 10545501Sjdp /* DWARF debug sections. 10645501Sjdp Symbols in the DWARF debugging sections are relative to the beginning 10745501Sjdp of the section so we begin them at 0. */ 10845501Sjdp /* DWARF 1 */ 10945501Sjdp .debug 0 : { *(.debug) } 11045501Sjdp .line 0 : { *(.line) } 11145501Sjdp /* GNU DWARF 1 extensions */ 11245501Sjdp .debug_srcinfo 0 : { *(.debug_srcinfo) } 11345501Sjdp .debug_sfnames 0 : { *(.debug_sfnames) } 11445501Sjdp /* DWARF 1.1 and DWARF 2 */ 11545501Sjdp .debug_aranges 0 : { *(.debug_aranges) } 11645501Sjdp .debug_pubnames 0 : { *(.debug_pubnames) } 11745501Sjdp /* DWARF 2 */ 11845501Sjdp .debug_info 0 : { *(.debug_info) } 11945501Sjdp .debug_abbrev 0 : { *(.debug_abbrev) } 12045501Sjdp .debug_line 0 : { *(.debug_line) } 12145501Sjdp .debug_frame 0 : { *(.debug_frame) } 12245501Sjdp .debug_str 0 : { *(.debug_str) } 12345501Sjdp .debug_loc 0 : { *(.debug_loc) } 12445501Sjdp .debug_macinfo 0 : { *(.debug_macinfo) } 12545501Sjdp /* SGI/MIPS DWARF 2 extensions */ 12645501Sjdp .debug_weaknames 0 : { *(.debug_weaknames) } 12745501Sjdp .debug_funcnames 0 : { *(.debug_funcnames) } 12845501Sjdp .debug_typenames 0 : { *(.debug_typenames) } 12945501Sjdp .debug_varnames 0 : { *(.debug_varnames) } 13045501Sjdp /* These must appear regardless of . */ 13145501Sjdp} 132