aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/loadaddr1.t
blob: f28c7cbbcd635c9eec81e9c5ab90eb8484034f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
SECTIONS
{
  . = -0x7ff00000;
  .text : {*(.text .text.*)}
  . = ALIGN(64);
  .foo : { *(.foo) }
  .bar -0xa00000 : AT ((LOADADDR(.foo) + SIZEOF(.foo) + 4095) & ~(4095))
    { *(.bar) }
  . = LOADADDR(.bar) + 4096;
  . = ALIGN(8192);
  .data : AT (ADDR(.data)) { *(.data) }
  /DISCARD/ : { *(.*) }
}