Home | History | Annotate | Line # | Download | only in conf
      1 /*	$NetBSD: stand.ldscript,v 1.5 2015/08/22 23:49:54 uebayasi Exp $	*/
      2 
      3 ENTRY(_start)
      4 SECTIONS
      5 {
      6   /* Read-only sections, merged into text segment: */
      7   .text :
      8   {
      9     *(.text)
     10     *(.text.*)
     11     *(.stub)
     12   }
     13   _etext = . ;
     14   PROVIDE (etext = .) ;
     15 
     16   .rodata :
     17   {
     18     *(.rodata)
     19     *(.rodata.*)
     20   }
     21 
     22   __data_start = . ;
     23   .data :
     24   {
     25     *(.data)
     26   }
     27   .data.cacheline_aligned :
     28   {
     29     *(.data.cacheline_aligned)
     30   }
     31   .data.read_mostly :
     32   {
     33     *(.data.read_mostly)
     34   }
     35   _edata = . ;
     36   PROVIDE (edata = .) ;
     37   __bss_start = . ;
     38   .bss :
     39   {
     40     *(.bss)
     41     *(.bss.*)
     42     *(COMMON)
     43     . = ALIGN(32 / 8);
     44   }
     45   . = ALIGN(32 / 8);
     46   _end = . ;
     47   PROVIDE (end = .) ;
     48   /DISCARD/ : {
     49     *(.eh_frame_hdr)
     50     *(.eh_frame)
     51     *(.note.netbsd.ident)
     52   }
     53 }
     54 SECTIONS
     55 {
     56   .text :
     57   AT (ADDR(.text) & 0x0fffffff)
     58   {
     59     *(.text)
     60   } =0
     61 }
     62