aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
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/script.cc
parentda769d5629564b82d4eec1b256ffc562d5c01624 (diff)
downloadgdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.zip
gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.gz
gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.bz2
Support -d/--define-common.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 307d1cf..eef034e 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -2080,6 +2080,15 @@ script_set_entry(void* closurev, const char* entry, size_t length)
script_parse_option(closurev, arg.c_str(), arg.size());
}
+// Called by the bison parser to set whether to define common symbols.
+
+extern "C" void
+script_set_common_allocation(void* closurev, int set)
+{
+ const char* arg = set != 0 ? "--define-common" : "--no-define-common";
+ script_parse_option(closurev, arg, strlen(arg));
+}
+
// Called by the bison parser to define a symbol.
extern "C" void