aboutsummaryrefslogtreecommitdiff
path: root/gold/yyscript.y
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2011-11-11 22:29:43 +0000
committerSterling Augustine <saugustine@google.com>2011-11-11 22:29:43 +0000
commit98ef3ea4864689663f2c73a44325964f0cc7902e (patch)
tree78021cfbb5b85ff8dffd4fc3a344b2c4f91f9190 /gold/yyscript.y
parentf4a8b6d7abcc3093c8011a74441ecc8d9983346c (diff)
downloadfsf-binutils-gdb-98ef3ea4864689663f2c73a44325964f0cc7902e.zip
fsf-binutils-gdb-98ef3ea4864689663f2c73a44325964f0cc7902e.tar.gz
fsf-binutils-gdb-98ef3ea4864689663f2c73a44325964f0cc7902e.tar.bz2
2011-11-11 Sterling Augustine <saugustine@google.com>
* yyscript.y (section_cmd): Add support for INCLUDE directive. (file_or_sections_cmd): Likewise.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r--gold/yyscript.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y
index 18f9496..51c755b 100644
--- a/gold/yyscript.y
+++ b/gold/yyscript.y
@@ -528,6 +528,8 @@ section_cmd:
nothing, we accept it and ignore it. */
}
| SORT_BY_NAME '(' CONSTRUCTORS ')'
+ | INCLUDE string
+ { script_include_directive(closure, $2.value, $2.length); }
| ';'
;
@@ -689,6 +691,8 @@ file_or_sections_cmd:
| assignment end
| ASSERT_K '(' parse_exp ',' string ')'
{ script_add_assertion(closure, $3, $5.value, $5.length); }
+ | INCLUDE string
+ { script_include_directive(closure, $2.value, $2.length); }
;
/* A list of MEMORY definitions. */