11.6Ssimonb/* $NetBSD: stand.ldscript,v 1.6 2021/04/23 08:42:26 simonb Exp $ */ 21.1Swdk 31.1Swdk/* ldscript for NetBSD/mipsco standalone bootstraps */ 41.3SheOUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips") 51.1SwdkOUTPUT_ARCH(mips) 61.1SwdkENTRY(_start) 71.1SwdkSECTIONS 81.1Swdk{ 91.1Swdk /* Read-only sections, merged into text segment. Assumes the 101.1Swdk kernel Makefile sets the start address via -Ttext. */ 111.1Swdk .text : 121.1Swdk { 131.1Swdk _ftext = . ; 141.1Swdk *(.text) 151.6Ssimonb *(.text.*) 161.1Swdk *(.gnu.warning) 171.1Swdk } =0 181.1Swdk _etext = .; 191.1Swdk PROVIDE (etext = .); 201.1Swdk .rodata : { *(.rodata) } 211.1Swdk .data : 221.1Swdk { 231.1Swdk _fdata = . ; 241.1Swdk *(.data) 251.1Swdk CONSTRUCTORS 261.1Swdk } 271.1Swdk _gp = ALIGN(16); 281.1Swdk .lit8 : { *(.lit8) } 291.1Swdk .lit4 : { *(.lit4) } 301.1Swdk .sdata : { *(.sdata) } 311.1Swdk _edata = .; 321.1Swdk PROVIDE (edata = .); 331.1Swdk __bss_start = .; 341.1Swdk _fbss = .; 351.1Swdk .bss : 361.1Swdk { 371.5Suebayasi *(.bss) 381.5Suebayasi *(COMMON) 391.5Suebayasi *(.sbss) 401.5Suebayasi *(.scommon) 411.1Swdk } 421.1Swdk _end = . ; 431.1Swdk PROVIDE (end = .); 441.1Swdk 451.1Swdk /* 461.1Swdk * Depending on the nuber of sections and their relative position 471.1Swdk * the Mips PROM firmware incorrectly loads the image into memory 481.2Swiz * 8 bytes higher than expected. If this happens change the following 491.1Swdk * definition from .reginfo to /DISCARD/ to remove the section 501.1Swdk */ 511.1Swdk 521.1Swdk .reginfo : { *(.reginfo) } 531.1Swdk} 54