module.ldscript revision 1.1
11.1Sbjh21/* $NetBSD: module.ldscript,v 1.1 2006/03/28 20:45:46 bjh21 Exp $ */
21.1Sbjh21
31.1Sbjh21/* linker script for generating RISC OS relocatable modules */
41.1Sbjh21/*
51.1Sbjh21 * The important thing here is that we need the text segment to be at the
61.1Sbjh21 * start so that the module header ends up in the right place when we
71.1Sbjh21 * flatten this into a binary file.  We also don't bother page-aligning
81.1Sbjh21 * anything, because RISC OS won't.
91.1Sbjh21 */
101.1Sbjh21
111.1Sbjh21OUTPUT_ARCH(arm)
121.1Sbjh21
131.1Sbjh21SECTIONS
141.1Sbjh21{
151.1Sbjh21  .text		: { *(.text) *(.gnu.warning) }
161.1Sbjh21  _etext = .;
171.1Sbjh21  PROVIDE (etext = .);
181.1Sbjh21  .rodata	: { *(.rodata) }
191.1Sbjh21  .data		: { *(.data) }
201.1Sbjh21  _edata = .;
211.1Sbjh21  PROVIDE (edata = .);
221.1Sbjh21  __bss_start = .;
231.1Sbjh21  .sbss		: { *(.sbss) *(.scommon) }
241.1Sbjh21  .bss		: { *(.bss) *(COMMON) }
251.1Sbjh21  _end = .;
261.1Sbjh21  PROVIDE (end = .);
271.1Sbjh21}