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
23 vectarea : o =0x00000, l = 0x0300
25 introm : o = 0x00400, l = 0x16000
26 /* The stack starts at the top of main ram. */
28 dram : o = 0x8000 , l = 0xffff
29 /* At the very top of the address space is the 8-bit area. */
31 ldata : o =0x4000 ,l = 0x0200
41 KEEP (*(SORT_NONE(.init)))
42 ${RELOCATING+KEEP (*(SORT_NONE(.fini)))}
43 } ${RELOCATING+ >introm}
47 ${RELOCATING+*(.rodata)}
48 ${RELOCATING+*(.text.*)}
50 ${RELOCATING+ _etext = . ; }
51 } ${RELOCATING+ > introm}
55 ${RELOCATING+*(.data.*)}
57 ${RELOCATING+ _edata = . ; }
58 } ${RELOCATING+ > dram}
62 ${RELOCATING+ _bss_start = . ;}
64 ${RELOCATING+*(COMMON)}
65 ${RELOCATING+ _end = . ; }
66 } ${RELOCATING+ > dram}
71 } ${RELOCATING+ > ldata}
77 } ${RELOCATING+ > vectarea}