1/* $NetBSD: module.ldscript,v 1.1 2006/03/28 20:45:46 bjh21 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 11OUTPUT_ARCH(arm) 12 13SECTIONS 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}