aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/overlay.t
blob: 2c50a6b1a482c9319a22a9a5645454f5e1cb30c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SECTIONS
{
  . = SIZEOF_HEADERS;
  .text : { *(.text) }
  OVERLAY 0x1000 : AT (0x4000)
  {
    .text1 {*(.text1)}
    .text2 {*(.text2)}
    .silly-name1 { *(.silly-name1) }
    .silly-name2 { *(.silly-name2) }
  }
  /DISCARD/ : { *(.*) }
  ASSERT(ADDR(.text1)==ADDR(.text2), "overlay error")
  ASSERT(ADDR(.silly-name1)==ADDR(.silly-name2), "silly overlay error")
}