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