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