aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-06-18 12:38:22 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-06-18 12:38:22 +0000
commit362c1d1a0446425c24bb3ea8738b3d3d56344228 (patch)
treeded9c05175ee5950cbbed0c71356d7b58457e21c /ld/ldlex.l
parent42ba7415ccca9cf6b16c7127362b665cd312be63 (diff)
downloadgdb-362c1d1a0446425c24bb3ea8738b3d3d56344228.zip
gdb-362c1d1a0446425c24bb3ea8738b3d3d56344228.tar.gz
gdb-362c1d1a0446425c24bb3ea8738b3d3d56344228.tar.bz2
* ldlex.l, ldgram.y: Add ALIGNOF.
* ldexp.c (exp_print_token, foldname): Likewise. * ld.texinfo: Likewise. ld/testsuite/ * ld-scripts/alignof.s: New. * ld-scripts/alignof.t: New * ld-scripts/alignof.exp: New.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 88a8f1d..b0313d9 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -254,6 +254,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)*
<EXPRESSION,BOTH,SCRIPT>"DATA_SEGMENT_END" { RTOKEN(DATA_SEGMENT_END);}
<EXPRESSION,BOTH,SCRIPT>"ADDR" { RTOKEN(ADDR);}
<EXPRESSION,BOTH,SCRIPT>"LOADADDR" { RTOKEN(LOADADDR);}
+<EXPRESSION,BOTH,SCRIPT>"ALIGNOF" { RTOKEN(ALIGNOF); }
<EXPRESSION,BOTH>"MAX" { RTOKEN(MAX_K); }
<EXPRESSION,BOTH>"MIN" { RTOKEN(MIN_K); }
<EXPRESSION,BOTH,SCRIPT>"ASSERT" { RTOKEN(ASSERT_K); }