aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/non-contiguous-arm7.ld
blob: 9934fdfd3a46dc200444304ac0279ba1cbf4d305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 The section .bss.MY_BUF won't fit in RAM1 or RAM2
*/

MEMORY
{
  ROM  (rx)    : ORIGIN = 0x8000000,    LENGTH = 10K
  RAM1 (xrw)   : ORIGIN = 0x10000000,   LENGTH = 64K
  RAM2 (xrw)   : ORIGIN = 0x20000000,   LENGTH = 96K
}

SECTIONS
{
  .text :
  {
    KEEP(*(.text.foo)) ;
  } >ROM

  .bss :
  {
    _sbss = .;
    *(.bss) *(.bss*) ;
    _ebss = .;
  } >RAM1

  .bss_ram2 :
  {
    _sbss_ram2 = .;
    *(.bss) *(.bss*) ;
    _ebss_ram2 = .;
  } >RAM2
}