diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2008-07-06 13:38:37 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2008-07-06 13:38:37 +0000 |
commit | 4006703d71641cd35a045f407a5c8bc85459978b (patch) | |
tree | efdd737568b7398b5dfbebf04eb1538c3144266a /ld/ldlex.l | |
parent | b56e7235bb83ed5cf86c71db7c9009fd4491bd0d (diff) | |
download | gdb-4006703d71641cd35a045f407a5c8bc85459978b.zip gdb-4006703d71641cd35a045f407a5c8bc85459978b.tar.gz gdb-4006703d71641cd35a045f407a5c8bc85459978b.tar.bz2 |
* ld.texinfo (File Commands): Document that INCLUDE can be used in
several different places.
* ldgram.y (statement, memory_spec, section): Allow INCLUDE.
(memory, memory_spec_list): Simplify BNF
(memory_spec_list_opt): New rule.
* ldlex.l (INCLUDE): Recognize in EXPRESSION.
testsuite/
* ld-scripts/include-1.d: New.
* ld-scripts/include-1.t: New.
* ld-scripts/include-data.t: New.
* ld-scripts/include-mem.t: New.
* ld-scripts/include-ram.t: New.
* ld-scripts/include-sections.t: New.
* ld-scripts/include-subdata.t: New.
* ld-scripts/include.exp: New.
* ld-scripts/include.s: New.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -307,7 +307,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* <BOTH,SCRIPT>"org" { RTOKEN(ORIGIN);} <BOTH,SCRIPT>"l" { RTOKEN( LENGTH);} <BOTH,SCRIPT>"len" { RTOKEN( LENGTH);} -<BOTH,SCRIPT>"INCLUDE" { RTOKEN(INCLUDE);} +<EXPRESSION,BOTH,SCRIPT>"INCLUDE" { RTOKEN(INCLUDE);} <BOTH,SCRIPT>"PHDRS" { RTOKEN (PHDRS); } <EXPRESSION,BOTH,SCRIPT>"AT" { RTOKEN(AT);} <EXPRESSION,BOTH,SCRIPT>"SUBALIGN" { RTOKEN(SUBALIGN);} |