aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-at2.t
blob: 57fd88ca88d7f647629d5c9e72ab6598dc96bc58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Memory region at test, >AT should propagate by default */

MEMORY {
  ram : ORIGIN = 0x10000, LENGTH = 0x100
  rom : ORIGIN = 0x20000, LENGTH = 0x200
  other : ORIGIN = 0x30000, LENGTH = 0x200
}
_start = 0x1000;
SECTIONS {
  .text : { *(.text) } >ram AT>rom
  .data : { *(.data) } >other /* No default AT>rom */
  .bss : { *(.bss) } >other
  /DISCARD/ : { *(*) }
}