aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/align.t
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-02-20 15:31:10 +0000
committerNathan Sidwell <nathan@codesourcery.com>2004-02-20 15:31:10 +0000
commit876f40905a27ef106554f894321b23d8130e9ffc (patch)
treeeda3fbb1695ae2a4858e9055b07078e3842b17b2 /ld/testsuite/ld-scripts/align.t
parent627fe3fb790fa71dea2b5699f4e23bbbcf184d5f (diff)
downloadgdb-876f40905a27ef106554f894321b23d8130e9ffc.zip
gdb-876f40905a27ef106554f894321b23d8130e9ffc.tar.gz
gdb-876f40905a27ef106554f894321b23d8130e9ffc.tar.bz2
* ldgram.y (exp): Add two operand ALIGN.
* ldexp.c (fold_binary): Add ALIGN_K case. * ld.texinfo (ALIGN): Document two operand version. * ld-scripts/align.{s,t,exp}: New.
Diffstat (limited to 'ld/testsuite/ld-scripts/align.t')
-rw-r--r--ld/testsuite/ld-scripts/align.t8
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")
+}