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