diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-01-13 13:29:55 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-01-13 13:29:55 +0000 |
commit | cba8ccced64a579ae5691aa5223a41ad0172095a (patch) | |
tree | 8ab2a849140d6a591bf96dc234664744ccc8166e /ld/ldlex.l | |
parent | 52ce512325a666c91eb0e6464aa65f36dfa4447a (diff) | |
download | binutils-redhat-cba8ccced64a579ae5691aa5223a41ad0172095a.tar.gz |
PR ld/12356
* ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
(Expression Section): Update.
* ld.h (ld_config_type): Add sane_expr.
* ldgram.y (ifile_p1): Add LD_FEATURE.
* ldlex.l (LD_FEATYRE): New.
* ldemul.c (after_parse_default): Delete code handling ld_compatibility.
* ldexp.h (struct ldexp_control): Delete uses_defined.
* ldexp.c: Remove all uses of uses_defined.
(fold_name): Test config.sane_expr rather than ld_compatibility.
(exp_fold_tree_1): Likewise. Adjust handling of assignments
during first phase.
* ldlang.h (ld_compatibility): Delete.
(lang_ld_feature): Declare.
* ldlang.c (ld_compatibility): Delete.
(open_input_bfds): Only handle assignments for --defsym.
(lang_ld_feature): New function.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l index 7560ca2149..397a5c6903 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -241,6 +241,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* <BOTH,SCRIPT,EXPRESSION,MRI>";" { RTOKEN(';');} <BOTH,SCRIPT>"MEMORY" { RTOKEN(MEMORY);} <BOTH,SCRIPT>"REGION_ALIAS" { RTOKEN(REGION_ALIAS);} +<BOTH,SCRIPT>"LD_FEATURE" { RTOKEN(LD_FEATURE);} <BOTH,SCRIPT,EXPRESSION>"ORIGIN" { RTOKEN(ORIGIN);} <BOTH,SCRIPT>"VERSION" { RTOKEN(VERSIONK);} <EXPRESSION,BOTH,SCRIPT>"BLOCK" { RTOKEN(BLOCK);} |