1 # Copyright (C) 2014-2019 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.
8 /* Copyright (C) 2014-2019 Free Software Foundation, Inc.
10 Copying and distribution of this script, with or without modification,
11 are permitted in any medium without royalty provided the copyright
12 notice and this notice are preserved. */
14 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
18 test -n "${RELOCATING}" && cat <<EOF
22 vectarea : o =0xc00000, l = 0x0300
24 introm : o = 0xc00300, l = 0x16000
25 /* The stack starts at the top of main ram. */
27 dram : o = 0x8000 , l = 0xffff
28 /* At the very top of the address space is the 8-bit area. */
30 ldata : o =0x4000 ,l = 0x0200
40 } ${RELOCATING+ > vectarea} */
43 KEEP (*(SORT_NONE(.init)))
44 ${RELOCATING+KEEP (*(SORT_NONE(.fini)))}
45 } ${RELOCATING+ >introm}
49 ${RELOCATING+*(.rodata)}
50 ${RELOCATING+*(.text.*)}
52 ${RELOCATING+ _etext = . ; }
53 } ${RELOCATING+ > introm}
57 ${RELOCATING+*(.data.*)}
59 ${RELOCATING+ _edata = . ; }
60 } ${RELOCATING+ > dram}
64 ${RELOCATING+ _bss_start = . ;}
66 ${RELOCATING+*(COMMON)}
67 ${RELOCATING+ _end = . ; }
68 } ${RELOCATING+ > dram}
73 } ${RELOCATING+ > ldata}
78 } ${RELOCATING+ > vectarea}