Home | History | Annotate | Line # | Download | only in stand
      1  1.2  christos /* $NetBSD: module.ldscript,v 1.2 2018/12/29 00:35:21 christos Exp $ */
      2  1.1     bjh21 
      3  1.1     bjh21 /* linker script for generating RISC OS relocatable modules */
      4  1.1     bjh21 /*
      5  1.1     bjh21  * The important thing here is that we need the text segment to be at the
      6  1.1     bjh21  * start so that the module header ends up in the right place when we
      7  1.1     bjh21  * flatten this into a binary file.  We also don't bother page-aligning
      8  1.1     bjh21  * anything, because RISC OS won't.
      9  1.1     bjh21  */
     10  1.1     bjh21 
     11  1.1     bjh21 OUTPUT_ARCH(arm)
     12  1.1     bjh21 
     13  1.2  christos PHDRS
     14  1.2  christos {
     15  1.2  christos   text PT_LOAD;
     16  1.2  christos   headers PT_PHDR FILEHDR PHDRS;
     17  1.2  christos }
     18  1.2  christos 
     19  1.1     bjh21 SECTIONS
     20  1.1     bjh21 {
     21  1.2  christos   .text		: { *(.text) *(.gnu.warning) } :text
     22  1.1     bjh21   _etext = .;
     23  1.1     bjh21   PROVIDE (etext = .);
     24  1.1     bjh21   .rodata	: { *(.rodata) }
     25  1.1     bjh21   .data		: { *(.data) }
     26  1.1     bjh21   _edata = .;
     27  1.1     bjh21   PROVIDE (edata = .);
     28  1.1     bjh21   __bss_start = .;
     29  1.1     bjh21   .sbss		: { *(.sbss) *(.scommon) }
     30  1.1     bjh21   .bss		: { *(.bss) *(COMMON) }
     31  1.1     bjh21   _end = .;
     32  1.1     bjh21   PROVIDE (end = .);
     33  1.2  christos }
     34