diff options
Diffstat (limited to 'ld/testsuite/ld-scripts/align.t')
-rw-r--r-- | ld/testsuite/ld-scripts/align.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/align.t b/ld/testsuite/ld-scripts/align.t new file mode 100644 index 0000000..49d6053 --- /dev/null +++ b/ld/testsuite/ld-scripts/align.t @@ -0,0 +1,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") +} |