1 1.1 thorpej /* $NetBSD: kern.ldscript,v 1.1 2002/11/21 01:38:41 thorpej Exp $ */ 2 1.1 thorpej 3 1.1 thorpej OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", 4 1.1 thorpej "elf32-littlearm") 5 1.1 thorpej OUTPUT_ARCH(arm) 6 1.1 thorpej SECTIONS 7 1.1 thorpej { 8 1.1 thorpej . = 0xf0000020; /* 0x20 == sizeof(a.out header) */ 9 1.1 thorpej 10 1.1 thorpej /* Read-only sections, merged into text segment: */ 11 1.1 thorpej .text : 12 1.1 thorpej { 13 1.1 thorpej *(.text) 14 1.1 thorpej *(.text.*) 15 1.1 thorpej *(.stub) 16 1.1 thorpej *(.glue_7t) *(.glue_7) 17 1.1 thorpej *(.rodata) *(.rodata.*) 18 1.1 thorpej } =0 19 1.1 thorpej PROVIDE (__etext = .); 20 1.1 thorpej PROVIDE (_etext = .); 21 1.1 thorpej PROVIDE (etext = .); 22 1.1 thorpej . = ALIGN(0x1000); 23 1.1 thorpej .data : 24 1.1 thorpej { 25 1.1 thorpej __data_start = . ; 26 1.1 thorpej *(.data) 27 1.1 thorpej *(.data.*) 28 1.1 thorpej *(.sdata) 29 1.1 thorpej *(.sdata.*) 30 1.1 thorpej } 31 1.1 thorpej _edata = .; 32 1.1 thorpej PROVIDE (edata = .); 33 1.1 thorpej __bss_start = .; 34 1.1 thorpej __bss_start__ = .; 35 1.1 thorpej .bss : 36 1.1 thorpej { 37 1.1 thorpej *(.dynbss) 38 1.1 thorpej *(.bss) 39 1.1 thorpej *(.bss.*) 40 1.1 thorpej *(COMMON) 41 1.1 thorpej /* Align here to ensure that the .bss section occupies space up to 42 1.1 thorpej _end. Align after .bss to ensure correct alignment even if the 43 1.1 thorpej .bss section disappears because there are no input sections. */ 44 1.1 thorpej . = ALIGN(32 / 8); 45 1.1 thorpej } 46 1.1 thorpej . = ALIGN(32 / 8); 47 1.1 thorpej _end = .; 48 1.1 thorpej _bss_end__ = . ; __bss_end__ = . ; __end__ = . ; 49 1.1 thorpej PROVIDE (end = .); 50 1.1 thorpej } 51