amiga_boottest
diff amiga.ld @ 0:51422ea54b9d
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 21 Feb 2018 12:00:13 +0200 |
parents | |
children | 48093e4bd99a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/amiga.ld Wed Feb 21 12:00:13 2018 +0200 1.3 @@ -0,0 +1,27 @@ 1.4 +OUTPUT_ARCH(m68k) 1.5 + 1.6 +MEMORY 1.7 +{ 1.8 + chipram : ORIGIN = 0, LENGTH = 0x80000 1.9 +} 1.10 + 1.11 +PROVIDE (_stacktop = 0x80000); 1.12 + 1.13 +SECTIONS { 1.14 + /* bootblock will load us at 100h, after the interrupt vectors */ 1.15 + . = 0x100; 1.16 + 1.17 + .text : { * (.text); } >chipram 1.18 + .rodata : { * (.rodata); } >chipram 1.19 + .data : { * (.data); } >chipram 1.20 + 1.21 + .bss ALIGN(4): { 1.22 + _bss_start = .; 1.23 + * (.bss); 1.24 + . = ALIGN(4); 1.25 + _bss_end = .; 1.26 + } >chipram 1.27 + _bss_size = SIZEOF(.bss); 1.28 + 1.29 + .dummy ALIGN(4): { LONG(42); } >chipram 1.30 +}