summaryrefslogtreecommitdiffstats
path: root/gold/yyscript.y
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-28 20:35:39 +0000
committerIan Lance Taylor <iant@google.com>2008-02-28 20:35:39 +0000
commit0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98 (patch)
treefe965d8393ecdd9c81b7f29ff4ce89fdd79d92c6 /gold/yyscript.y
parentda769d5629564b82d4eec1b256ffc562d5c01624 (diff)
downloadppe42-binutils-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.gz
ppe42-binutils-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.zip
Support -d/--define-common.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r--gold/yyscript.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y
index 3605158092..ca2835fb7e 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 '}'
OpenPOWER on IntegriCloud