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