1TXT_ORIGIN = 0x100; 2TXT_LENGTH = 32K; 3MEMORY 4{ 5 R_TEXTMEM (ARX) : ORIGIN = TXT_ORIGIN, LENGTH = TXT_LENGTH 6 R_DATAMEM (AW) : org = DATA_ORIGIN, l = DATA_LENGTH 7} 8 9REGION_ALIAS ("A_TEXTMEM", R_TEXTMEM); 10REGION_ALIAS ("A_DATAMEM", R_DATAMEM); 11 12REGION_ALIAS ("TEXTMEM", A_TEXTMEM); 13REGION_ALIAS ("DATAMEM", A_DATAMEM); 14 15SECTIONS 16{ 17 . = 0; 18 .text : 19 { 20 text_start = ORIGIN (TEXTMEM); 21 *(.text) 22 *(.pr) 23 text_end = .; 24 } > TEXTMEM 25 26 data_start = ORIGIN (DATAMEM); 27 .data : 28 { 29 *(.data) 30 *(.rw) 31 data_end = .; 32 } >DATAMEM 33 34 fred = ORIGIN(DATAMEM) + LENGTH(DATAMEM); 35 tred = ORIGIN(TEXTMEM) + LENGTH(TEXTMEM); 36} 37