1 # Copyright (C) 2014 Free Software Foundation, Inc.
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.
18 /* Copyright (C) 2014 Free Software Foundation, Inc.
20 Copying and distribution of this script, with or without modification,
21 are permitted in any medium without royalty provided the copyright
22 notice and this notice are preserved. */
24 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
26 ${RELOCATING+ENTRY ("_start")}
28 /* The memory size is 256KB to coincide with the simulator.
29 Don't change either without considering the other. */
33 /* 0xc4 is a magic entry. We should have the linker just
34 skip over it one day... */
35 vectors : o = 0x0000, l = 0xc4
36 magicvectors : o = 0xc4, l = 0x3c
37 /* We still only use 256k as the main ram size. */
38 ram : o = 0x0100, l = 0x3fefc
39 /* The stack starts at the top of main ram. */
40 topram : o = 0x3fffc, l = 0x4
41 /* This holds variables in the "tiny" sections. */
42 tiny : o = 0xff8000, l = 0x7f00
43 /* At the very top of the address space is the 8-bit area. */
44 eight : o = 0xffff00, l = 0x100
51 /* Use something like this to place a specific
52 function's address into the vector table.
54 LONG (ABSOLUTE (_foobar)). */
57 } ${RELOCATING+ > vectors}
64 ${RELOCATING+ _etext = . ; }
65 } ${RELOCATING+ > ram}
67 ${CONSTRUCTING+${TORS}}
72 ${RELOCATING+ _edata = . ; }
73 } ${RELOCATING+ > ram}
77 ${RELOCATING+ _bss_start = . ;}
80 ${RELOCATING+ _end = . ; }
85 ${RELOCATING+ _stack = . ; }
87 } ${RELOCATING+ > topram}
92 } ${RELOCATING+ > tiny}
97 } ${RELOCATING+ > eight}
99 .stab 0 ${RELOCATING+(NOLOAD)} :
104 .stabstr 0 ${RELOCATING+(NOLOAD)} :