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