Home | History | Annotate | Download | only in ld-scripts
      1 /* Memory region overflow tests: overflow r1 plus text/data collision.  */
      2 
      3 MEMORY {
      4   bss (rwx) : ORIGIN = 0, LENGTH = 0
      5   r1  (rwx) : ORIGIN = 0x1000, LENGTH = 8
      6   r2  (rwx) : ORIGIN = 0x1008, LENGTH = 12
      7 }
      8 _start = 0x1000;
      9 SECTIONS {
     10   .bss  : { *(.bss)  } > bss
     11   .text : { *(.txt) } > r1
     12   .data : { *(.dat) } > r2
     13   /DISCARD/ : { *(*) }
     14 }
     15