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