diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-28 20:35:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-28 20:35:39 +0000 |
commit | 0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98 (patch) | |
tree | fe965d8393ecdd9c81b7f29ff4ce89fdd79d92c6 /gold/yyscript.y | |
parent | da769d5629564b82d4eec1b256ffc562d5c01624 (diff) | |
download | gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.zip gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.gz gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.bz2 |
Support -d/--define-common.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r-- | gold/yyscript.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y index 3605158..ca2835f 100644 --- a/gold/yyscript.y +++ b/gold/yyscript.y @@ -232,10 +232,14 @@ linker_script: /* A command which may appear at top level of a linker script. */ file_cmd: - GROUP + FORCE_COMMON_ALLOCATION + { script_set_common_allocation(closure, 1); } + | GROUP { script_start_group(closure); } '(' input_list ')' { script_end_group(closure); } + | INHIBIT_COMMON_ALLOCATION + { script_set_common_allocation(closure, 0); } | OPTION '(' string ')' { script_parse_option(closure, $3.value, $3.length); } | PHDRS '{' phdrs_defs '}' |