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