Home | History | Annotate | Line # | Download | only in conf
      1  1.6    simonb /*	$NetBSD: stand.ldscript,v 1.6 2021/04/23 08:42:26 simonb Exp $	*/
      2  1.1       wdk 
      3  1.1       wdk /*  ldscript for NetBSD/mipsco standalone bootstraps */
      4  1.3        he OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
      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.6    simonb     *(.text.*)
     16  1.1       wdk     *(.gnu.warning)
     17  1.1       wdk   } =0
     18  1.1       wdk   _etext = .;
     19  1.1       wdk   PROVIDE (etext = .);
     20  1.1       wdk   .rodata    : { *(.rodata)  }
     21  1.1       wdk   .data    :
     22  1.1       wdk   {
     23  1.1       wdk     _fdata = . ;
     24  1.1       wdk     *(.data)
     25  1.1       wdk     CONSTRUCTORS
     26  1.1       wdk   }
     27  1.1       wdk   _gp = ALIGN(16);
     28  1.1       wdk   .lit8 : { *(.lit8) }
     29  1.1       wdk   .lit4 : { *(.lit4) }
     30  1.1       wdk   .sdata     : { *(.sdata) }
     31  1.1       wdk   _edata  =  .;
     32  1.1       wdk   PROVIDE (edata = .);
     33  1.1       wdk   __bss_start = .;
     34  1.1       wdk   _fbss = .;
     35  1.1       wdk   .bss       :
     36  1.1       wdk   {
     37  1.5  uebayasi     *(.bss)
     38  1.5  uebayasi     *(COMMON)
     39  1.5  uebayasi     *(.sbss)
     40  1.5  uebayasi     *(.scommon)
     41  1.1       wdk   }
     42  1.1       wdk   _end = . ;
     43  1.1       wdk   PROVIDE (end = .);
     44  1.1       wdk 
     45  1.1       wdk   /*
     46  1.1       wdk    * Depending on the nuber of sections and their relative position
     47  1.1       wdk    * the Mips PROM firmware incorrectly loads the image into memory
     48  1.2       wiz    * 8 bytes higher than expected.  If this happens change the following
     49  1.1       wdk    * definition from .reginfo to /DISCARD/ to remove the section
     50  1.1       wdk    */
     51  1.1       wdk 
     52  1.1       wdk   .reginfo : { *(.reginfo) }
     53  1.1       wdk }
     54