1*3b60f8ecSuebayasi/* $NetBSD: kern.ldscript,v 1.5 2015/08/23 08:57:25 uebayasi Exp $ */ 275ea1c1fSthorpej 375ea1c1fSthorpejSECTIONS 475ea1c1fSthorpej{ 575ea1c1fSthorpej . = 0xf0000020; /* 0x20 == sizeof(a.out header) */ 675ea1c1fSthorpej 775ea1c1fSthorpej /* Read-only sections, merged into text segment: */ 875ea1c1fSthorpej .text : 975ea1c1fSthorpej { 1075ea1c1fSthorpej *(.text) 1175ea1c1fSthorpej *(.text.*) 1275ea1c1fSthorpej *(.stub) 1375ea1c1fSthorpej *(.glue_7t) *(.glue_7) 1475ea1c1fSthorpej *(.rodata) *(.rodata.*) 1575ea1c1fSthorpej } =0 1675ea1c1fSthorpej PROVIDE (__etext = .); 1775ea1c1fSthorpej PROVIDE (_etext = .); 1875ea1c1fSthorpej PROVIDE (etext = .); 1975ea1c1fSthorpej . = ALIGN(0x1000); 2075ea1c1fSthorpej .data : 2175ea1c1fSthorpej { 2275ea1c1fSthorpej __data_start = . ; 2375ea1c1fSthorpej *(.data) 2475ea1c1fSthorpej *(.data.*) 2575ea1c1fSthorpej *(.sdata) 2675ea1c1fSthorpej *(.sdata.*) 2775ea1c1fSthorpej } 2875ea1c1fSthorpej _edata = .; 2975ea1c1fSthorpej PROVIDE (edata = .); 3075ea1c1fSthorpej __bss_start = .; 3175ea1c1fSthorpej __bss_start__ = .; 3275ea1c1fSthorpej .bss : 3375ea1c1fSthorpej { 3475ea1c1fSthorpej *(.dynbss) 3575ea1c1fSthorpej *(.bss) 3675ea1c1fSthorpej *(.bss.*) 3775ea1c1fSthorpej *(COMMON) 3875ea1c1fSthorpej /* Align here to ensure that the .bss section occupies space up to 3975ea1c1fSthorpej _end. Align after .bss to ensure correct alignment even if the 4075ea1c1fSthorpej .bss section disappears because there are no input sections. */ 4175ea1c1fSthorpej . = ALIGN(32 / 8); 4275ea1c1fSthorpej } 4375ea1c1fSthorpej . = ALIGN(32 / 8); 4475ea1c1fSthorpej _end = .; 4575ea1c1fSthorpej _bss_end__ = . ; __bss_end__ = . ; __end__ = . ; 4675ea1c1fSthorpej PROVIDE (end = .); 4775ea1c1fSthorpej} 48