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