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 = . ; }
46 } ${RELOCATING+ > ram}
47 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
49 ${RELOCATING+ _bss_start = . ; }
52 ${RELOCATING+ _end = . ; }
53 } ${RELOCATING+ > ram}
55 ${RELOCATING+ __data_load_start = LOADADDR(.data); }
56 ${RELOCATING+ __data_load_end = __data_load_start + SIZEOF(.data); }
58 .stab 0 ${RELOCATING+(NOLOAD)} :
62 .stabstr 0 ${RELOCATING+(NOLOAD)} :
68 . $srcdir/scripttempl/DWARF.sc