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