From 98ef3ea4864689663f2c73a44325964f0cc7902e Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Fri, 11 Nov 2011 22:29:43 +0000 Subject: [PATCH] 2011-11-11 Sterling Augustine * yyscript.y (section_cmd): Add support for INCLUDE directive. (file_or_sections_cmd): Likewise. --- gold/ChangeLog | 5 +++++ gold/yyscript.y | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index bcb534c407e..20b5485c4b9 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Sterling Augustine + + * yyscript.y (section_cmd): Add support for INCLUDE directive. + (file_or_sections_cmd): Likewise. + 2011-11-11 Doug Kwan * arm.cc (Target_arm::do_make_elf_object): Allow executable also diff --git a/gold/yyscript.y b/gold/yyscript.y index 18f949600c9..51c755bac3e 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. */ -- 2.30.2