1*0a6a1f1dSLionel Sambuc/* $NetBSD: stand.ldscript,v 1.5 2015/08/22 23:49:54 uebayasi Exp $ */ 284d9c625SLionel Sambuc 384d9c625SLionel SambucOUTPUT_FORMAT("elf32-i386-minix", "elf32-i386-minix", 484d9c625SLionel Sambuc "elf32-i386-minix") 584d9c625SLionel SambucOUTPUT_ARCH(i386) 684d9c625SLionel SambucENTRY(_start) 784d9c625SLionel SambucSECTIONS 884d9c625SLionel Sambuc{ 984d9c625SLionel Sambuc /* Read-only sections, merged into text segment: */ 1084d9c625SLionel Sambuc .text : 1184d9c625SLionel Sambuc { 1284d9c625SLionel Sambuc *(.text) 1384d9c625SLionel Sambuc *(.text.*) 1484d9c625SLionel Sambuc *(.stub) 15*0a6a1f1dSLionel Sambuc } 1684d9c625SLionel Sambuc _etext = . ; 1784d9c625SLionel Sambuc PROVIDE (etext = .) ; 1884d9c625SLionel Sambuc 1984d9c625SLionel Sambuc .rodata : 2084d9c625SLionel Sambuc { 2184d9c625SLionel Sambuc *(.rodata) 2284d9c625SLionel Sambuc *(.rodata.*) 2384d9c625SLionel Sambuc } 2484d9c625SLionel Sambuc 2584d9c625SLionel Sambuc __data_start = . ; 2684d9c625SLionel Sambuc .data : 2784d9c625SLionel Sambuc { 2884d9c625SLionel Sambuc *(.data) 2984d9c625SLionel Sambuc } 3084d9c625SLionel Sambuc .data.cacheline_aligned : 3184d9c625SLionel Sambuc { 3284d9c625SLionel Sambuc *(.data.cacheline_aligned) 3384d9c625SLionel Sambuc } 3484d9c625SLionel Sambuc .data.read_mostly : 3584d9c625SLionel Sambuc { 3684d9c625SLionel Sambuc *(.data.read_mostly) 3784d9c625SLionel Sambuc } 3884d9c625SLionel Sambuc _edata = . ; 3984d9c625SLionel Sambuc PROVIDE (edata = .) ; 4084d9c625SLionel Sambuc __bss_start = . ; 4184d9c625SLionel Sambuc .bss : 4284d9c625SLionel Sambuc { 4384d9c625SLionel Sambuc *(.bss) 4484d9c625SLionel Sambuc *(.bss.*) 4584d9c625SLionel Sambuc *(COMMON) 4684d9c625SLionel Sambuc . = ALIGN(32 / 8); 4784d9c625SLionel Sambuc } 4884d9c625SLionel Sambuc . = ALIGN(32 / 8); 4984d9c625SLionel Sambuc _end = . ; 5084d9c625SLionel Sambuc PROVIDE (end = .) ; 5184d9c625SLionel Sambuc /DISCARD/ : { 5284d9c625SLionel Sambuc *(.eh_frame_hdr) 5384d9c625SLionel Sambuc *(.eh_frame) 5484d9c625SLionel Sambuc *(.note.netbsd.ident) 5584d9c625SLionel Sambuc } 5684d9c625SLionel Sambuc} 57*0a6a1f1dSLionel SambucSECTIONS 58*0a6a1f1dSLionel Sambuc{ 59*0a6a1f1dSLionel Sambuc .text : 60*0a6a1f1dSLionel Sambuc AT (ADDR(.text) & 0x0fffffff) 61*0a6a1f1dSLionel Sambuc { 62*0a6a1f1dSLionel Sambuc *(.text) 63*0a6a1f1dSLionel Sambuc } =0 64*0a6a1f1dSLionel Sambuc} 65