Home | History | Annotate | Line # | Download | only in conf
kern-mb.ldscript revision 1.3
      1 /* $NetBSD: kern-mb.ldscript,v 1.3 2015/08/21 02:35:52 uebayasi Exp $ */
      2 
      3 /*  ldscript for NetBSD/powerpc kernels and LKMs */
      4 OUTPUT_ARCH(powerpc)
      5 ENTRY(_start)
      6 /* Do we need any of these?
      7    __DYNAMIC = 0;    */
      8 _DYNAMIC_LINK = 0;
      9 SECTIONS
     10 {
     11   /*  Read-only sections, merged into text segment.  Assumes the
     12       kernel Makefile sets the start address via -Ttext.  */
     13   .text      :
     14   {
     15     _ftext = . ;
     16     *(.text)
     17     __stub_start = .;
     18     *(.stub)
     19     __stub_end = .;
     20     __stub_pmap_start = .;
     21     *(.stub.pmap)
     22     __stub_pmap_end = .;
     23     *(.gnu.warning)
     24   } =0
     25   _etext = .;
     26   PROVIDE (etext = .);
     27   .rodata    : { *(.rodata) *(.rodata.*) }
     28   .reginfo : { *(.reginfo) }
     29   . = ALIGN(0x100000);
     30   .data    :
     31   {
     32     _fdata = . ;
     33     *(.data)
     34     CONSTRUCTORS
     35   }
     36   .data1			: { *(.data1) }
     37   . = ALIGN(32);	/* COHERENCY UNIT */
     38   .data.cacheline_aligned	: { *(.data.cacheline_aligned) }
     39   . = ALIGN(32);	/* COHERENCY UNIT */
     40   .data.read_mostly		: { *(.data.read_mostly) }
     41   . = ALIGN(32);	/* COHERENCY UNIT */
     42   _gp = ALIGN(16) + 0x7ff0;
     43   .lit8 : { *(.lit8) }
     44   .lit4 : { *(.lit4) }
     45   .sdata     : { *(.sdata) }
     46   _edata  =  .;
     47   PROVIDE (edata = .);
     48   __bss_start = .;
     49   _fbss = .;
     50   .sbss      : { *(.sbss) *(.scommon) }
     51   .bss       :
     52   {
     53     *(.bss)
     54     *(COMMON)
     55   }
     56   _end = . ;
     57   PROVIDE (end = .);
     58   /* These are needed for ELF backends which have not yet been
     59      converted to the new style linker.  */
     60   .stab 0 : { *(.stab) }
     61   .stabstr 0 : { *(.stabstr) }
     62   /* DWARF debug sections.
     63      Symbols in the .debug DWARF section are relative to the beginning of the
     64      section so we begin .debug at 0.  It's not clear yet what needs to happen
     65      for the others.   */
     66   .debug          0 : { *(.debug) }
     67   .debug_srcinfo  0 : { *(.debug_srcinfo) }
     68   .debug_aranges  0 : { *(.debug_aranges) }
     69   .debug_pubnames 0 : { *(.debug_pubnames) }
     70   .debug_sfnames  0 : { *(.debug_sfnames) }
     71   .line           0 : { *(.line) }
     72   /* These must appear regardless of  .  */
     73   .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
     74   .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
     75 }
     76