1/* $NetBSD: module.ldscript,v 1.2 2018/12/29 00:35:21 christos 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 13PHDRS 14{ 15 text PT_LOAD; 16 headers PT_PHDR FILEHDR PHDRS; 17} 18 19SECTIONS 20{ 21 .text : { *(.text) *(.gnu.warning) } :text 22 _etext = .; 23 PROVIDE (etext = .); 24 .rodata : { *(.rodata) } 25 .data : { *(.data) } 26 _edata = .; 27 PROVIDE (edata = .); 28 __bss_start = .; 29 .sbss : { *(.sbss) *(.scommon) } 30 .bss : { *(.bss) *(COMMON) } 31 _end = .; 32 PROVIDE (end = .); 33} 34