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