aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
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/ldexp.c
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/ldexp.c')
-rw-r--r--ld/ldexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 2b973c3..23a2392 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -394,6 +394,10 @@ fold_binary (etree_type *tree,
result = other;
break;
+ case ALIGN_K:
+ result.value = align_n (result.value, other.value);
+ break;
+
case DATA_SEGMENT_ALIGN:
if (allocation_done != lang_first_phase_enum
&& current_section == abs_output_section