10 } ${RELOCATING+ > ram}"
13 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
18 test -n "${RELOCATING}" && cat <<EOF
19 /* Allow the command line to override the memory region sizes. */
20 __PMSIZE = DEFINED(__PMSIZE) ? __PMSIZE : 256K;
21 __RAMSIZE = DEFINED(__RAMSIZE) ? __RAMSIZE : 64K;
25 flash (rx) : ORIGIN = 0, LENGTH = __PMSIZE
26 ram (rw!x) : ORIGIN = 0x800000, LENGTH = __RAMSIZE
35 *(.text${RELOCATING+*})
36 ${RELOCATING+*(.strings)
38 KEEP (*(SORT_NONE(.init)))
39 KEEP (*(SORT_NONE(.fini)))
42 } ${RELOCATING+ > flash}
43 ${CONSTRUCTING+${TORS}}
44 .data : ${RELOCATING+ AT (ADDR (.text) + SIZEOF (.text))}
47 ${RELOCATING+*(.rodata)
51 } ${RELOCATING+ > ram}
52 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
54 ${RELOCATING+ _bss_start = . ; }
56 ${RELOCATING+*(COMMON)
59 } ${RELOCATING+ > ram}
61 ${RELOCATING+ __data_load_start = LOADADDR(.data); }
62 ${RELOCATING+ __data_load_end = __data_load_start + SIZEOF(.data); }
64 .stab 0 ${RELOCATING+(NOLOAD)} :
68 .stabstr 0 ${RELOCATING+(NOLOAD)} :
74 . $srcdir/scripttempl/DWARF.sc