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