Home | History | Annotate | Download | only in ld-scripts
      1 MEMORY
      2 {
      3   R_TEXTMEM (ARX) : ORIGIN = 0x100, LENGTH = 32K
      4   R_DATAMEM (AW)  : org = 0x1000, l = (64 * 1024)
      5 }
      6 
      7 REGION_ALIAS ("A_TEXTMEM", R_TEXTMEM);
      8 REGION_ALIAS ("A_DATAMEM", R_DATAMEM);
      9 
     10 REGION_ALIAS ("TEXTMEM", A_TEXTMEM);
     11 REGION_ALIAS ("DATAMEM", A_DATAMEM);
     12 
     13 SECTIONS
     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 }
     34