aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/align.t
blob: 49d6053a10f1ceb026a117bb06f8d72ded105a77 (plain)
1
2
3
4
5
6
7
8
SECTIONS
{
  .text : {*(.text)}
  .data ALIGN(0x40) : AT (ALIGN (LOADADDR (.text) + SIZEOF (.text), 0x80))
    {}
  ASSERT (LOADADDR(.data) == 0x80, "dyadic ALIGN broken")
  ASSERT (ADDR(.data) == 0x40, "monadic ALIGN broken")
}