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