aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
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/ldgram.y
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/ldgram.y')
-rw-r--r--ld/ldgram.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index e885f7d..6c46c85 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -804,6 +804,8 @@ exp :
{ $$ = exp_unop(ABSOLUTE, $3); }
| ALIGN_K '(' exp ')'
{ $$ = exp_unop(ALIGN_K,$3); }
+ | ALIGN_K '(' exp ',' exp ')'
+ { $$ = exp_binop(ALIGN_K,$3,$5); }
| DATA_SEGMENT_ALIGN '(' exp ',' exp ')'
{ $$ = exp_binop (DATA_SEGMENT_ALIGN, $3, $5); }
| DATA_SEGMENT_END '(' exp ')'