Home | History | Annotate | Line # | Download | only in conf
stand.ldscript revision 1.2
      1  1.2  wiz /*	$NetBSD: stand.ldscript,v 1.2 2001/12/04 17:56:36 wiz Exp $	*/
      2  1.1  wdk 
      3  1.1  wdk /*  ldscript for NetBSD/mipsco standalone bootstraps */
      4  1.1  wdk OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
      5  1.1  wdk OUTPUT_ARCH(mips)
      6  1.1  wdk ENTRY(_start)
      7  1.1  wdk SECTIONS
      8  1.1  wdk {
      9  1.1  wdk   /*  Read-only sections, merged into text segment.  Assumes the
     10  1.1  wdk       kernel Makefile sets the start address via -Ttext.  */
     11  1.1  wdk   .text      :
     12  1.1  wdk   {
     13  1.1  wdk     _ftext = . ;
     14  1.1  wdk     *(.text)
     15  1.1  wdk     *(.gnu.warning)
     16  1.1  wdk   } =0
     17  1.1  wdk   _etext = .;
     18  1.1  wdk   PROVIDE (etext = .);
     19  1.1  wdk   .rodata    : { *(.rodata)  }
     20  1.1  wdk   .data    :
     21  1.1  wdk   {
     22  1.1  wdk     _fdata = . ;
     23  1.1  wdk     *(.data)
     24  1.1  wdk     CONSTRUCTORS
     25  1.1  wdk   }
     26  1.1  wdk   _gp = ALIGN(16);
     27  1.1  wdk   .lit8 : { *(.lit8) }
     28  1.1  wdk   .lit4 : { *(.lit4) }
     29  1.1  wdk   .sdata     : { *(.sdata) }
     30  1.1  wdk   _edata  =  .;
     31  1.1  wdk   PROVIDE (edata = .);
     32  1.1  wdk   __bss_start = .;
     33  1.1  wdk   _fbss = .;
     34  1.1  wdk   .bss       :
     35  1.1  wdk   {
     36  1.1  wdk    *(.bss)
     37  1.1  wdk    *(COMMON)
     38  1.1  wdk    *(.sbss)
     39  1.1  wdk    *(.scommon)
     40  1.1  wdk   }
     41  1.1  wdk   _end = . ;
     42  1.1  wdk   PROVIDE (end = .);
     43  1.1  wdk 
     44  1.1  wdk   /*
     45  1.1  wdk    * Depending on the nuber of sections and their relative position
     46  1.1  wdk    * the Mips PROM firmware incorrectly loads the image into memory
     47  1.2  wiz    * 8 bytes higher than expected.  If this happens change the following
     48  1.1  wdk    * definition from .reginfo to /DISCARD/ to remove the section
     49  1.1  wdk    */
     50  1.1  wdk 
     51  1.1  wdk   .reginfo : { *(.reginfo) }
     52  1.1  wdk }
     53