1 /* $NetBSD: kern.ldscript.Xen,v 1.6.2.2 2016/05/29 08:44:17 skrll Exp $ */ 2 3 #include "assym.h" 4 5 __PAGE_SIZE = 0x1000 ; 6 7 SECTIONS 8 { 9 /* Read-only sections, merged into text segment: */ 10 .text : 11 { 12 *(.text) 13 *(.text.*) 14 *(.stub) 15 } 16 _etext = . ; 17 PROVIDE (etext = .) ; 18 19 .rodata : 20 { 21 *(.rodata) 22 *(.rodata.*) 23 } 24 25 /* 26 * Adjust the address for the data segment. We want to adjust up to 27 * the same address within the page on the next page up. 28 */ 29 . = ALIGN(0x1000) + (. & (0x1000 - 1)); 30 31 __rodata_start = . ; 32 __data_start = . ; 33 .data : 34 { 35 *(.data) 36 } 37 38 . = ALIGN(COHERENCY_UNIT); 39 .data.cacheline_aligned : 40 { 41 *(.data.cacheline_aligned) 42 } 43 . = ALIGN(COHERENCY_UNIT); 44 .data.read_mostly : 45 { 46 *(.data.read_mostly) 47 } 48 . = ALIGN(COHERENCY_UNIT); 49 _edata = . ; 50 51 PROVIDE (edata = .) ; 52 __bss_start = . ; 53 .bss : 54 { 55 *(.bss) 56 *(.bss.*) 57 *(COMMON) 58 . = ALIGN(32 / 8); 59 } 60 . = ALIGN(32 / 8); 61 _end = . ; 62 PROVIDE (end = .) ; 63 .note.netbsd.ident : 64 { 65 KEEP(*(.note.netbsd.ident)); 66 } 67 } 68 69 SECTIONS 70 { 71 .text : 72 AT (ADDR(.text)) 73 { 74 *(.text) 75 } = 0 76 } 77