aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-over8.t
blob: 7623b19a0372a0f13643555cc45264ca65784190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Memory region overflow tests: bss to LMA doesn't cause overflow.  */

MEMORY {
  rom (rwx) : ORIGIN = 0, LENGTH = 2048
  ram (rwx) : ORIGIN = 0x1000, LENGTH = 2048
}
_start = 0x0;
SECTIONS {
  .text : { *(.text) } >rom AT>rom
  .data : { *(.data) } >ram AT>rom
  .bss : { *(.bss) } >ram AT>rom
  /DISCARD/ : { *(*) }
}