2011-11-11 Sterling Augustine <saugustine@google.com>
authorSterling Augustine <saugustine@google.com>
Fri, 11 Nov 2011 22:29:43 +0000 (22:29 +0000)
committerSterling Augustine <saugustine@google.com>
Fri, 11 Nov 2011 22:29:43 +0000 (22:29 +0000)
* yyscript.y (section_cmd): Add support for INCLUDE directive.
(file_or_sections_cmd): Likewise.

gold/ChangeLog
gold/yyscript.y

index bcb534c407ec2b1d0aa039c856928553ad2120c8..20b5485c4b9dbe0adfd38a07422dbc4babf52566 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-11  Sterling Augustine  <saugustine@google.com>
+
+       * yyscript.y (section_cmd): Add support for INCLUDE directive.
+       (file_or_sections_cmd): Likewise.
+
 2011-11-11  Doug Kwan  <dougkwan@google.com>
 
        * arm.cc (Target_arm::do_make_elf_object): Allow executable also
index 18f949600c9b3c93bb7c863955e73db7275a90e7..51c755bac3e1c769275e2293f16baaa533e61388 100644 (file)
@@ -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.  */
This page took 0.036021 seconds and 4 git commands to generate.