1/* $NetBSD: stand.ldscript,v 1.4 2010/05/04 15:00:39 tsutsui Exp $ */ 2 3/* ldscript for NetBSD/mips stand-alone programs */ 4OUTPUT_ARCH(mips) 5ENTRY(_start) 6SECTIONS 7{ 8 /* Read-only sections, merged into text segment. Assumes the 9 stand Makefile sets the start address via -Ttext. */ 10 .text : 11 { 12 _ftext = . ; 13 *(.text) 14 *(.gnu.warning) 15 } =0 16 _etext = .; 17 PROVIDE (etext = .); 18 .rodata : { *(.rodata) *(.rodata.*) } 19 .data : 20 { 21 _fdata = . ; 22 *(.data) 23 CONSTRUCTORS 24 } 25 _gp = ALIGN(16); 26 .lit8 : { *(.lit8) } 27 .lit4 : { *(.lit4) } 28 .sdata : { *(.sdata) } 29 _edata = .; 30 PROVIDE (edata = .); 31 __bss_start = .; 32 _fbss = .; 33 .sbss : { *(.sbss) *(.scommon) } 34 .bss : 35 { 36 *(.bss) 37 *(COMMON) 38 } 39 _end = . ; 40 PROVIDE (end = .); 41} 42