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