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