13 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
17 /* Allow the command line to override the memory region sizes. */
18 __PMSIZE = DEFINED(__PMSIZE) ? __PMSIZE : 256K;
19 __RAMSIZE = DEFINED(__RAMSIZE) ? __RAMSIZE : 64K;
23 flash (rx) : ORIGIN = 0, LENGTH = __PMSIZE
24 ram (rw!x) : ORIGIN = 0x800000, LENGTH = __RAMSIZE
36 ${RELOCATING+ _etext = . ; }
38 } ${RELOCATING+ > flash}
39 ${CONSTRUCTING+${TORS}}
40 .data : ${RELOCATING+ AT (ADDR (.text) + SIZEOF (.text))}
45 ${RELOCATING+ _edata = . ; }
47 } ${RELOCATING+ > ram}
48 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
50 ${RELOCATING+ _bss_start = . ; }
53 ${RELOCATING+ _end = . ; }
55 } ${RELOCATING+ > ram}
57 ${RELOCATING+ __data_load_start = LOADADDR(.data); }
58 ${RELOCATING+ __data_load_end = __data_load_start + SIZEOF(.data); }
60 .stab 0 ${RELOCATING+(NOLOAD)} :
64 .stabstr 0 ${RELOCATING+(NOLOAD)} :
70 . $srcdir/scripttempl/DWARF.sc