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