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