diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-06 08:13:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-06 08:13:50 +0000 |
commit | 6a74a71947df73c828f073af0dcad0c323dcd8c4 (patch) | |
tree | 19103071382f3c094d30ea8fa6e8d8bbc0af1031 /gold/options.cc | |
parent | 0797561a54769f4d8217c1f141858380025b0094 (diff) | |
download | gdb-6a74a71947df73c828f073af0dcad0c323dcd8c4.zip gdb-6a74a71947df73c828f073af0dcad0c323dcd8c4.tar.gz gdb-6a74a71947df73c828f073af0dcad0c323dcd8c4.tar.bz2 |
Initial -r support.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index b1b428f..a4b4c2f 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -977,6 +977,9 @@ Command_line::get_special_argument(const char* longname, int argc, char** argv, void Command_line::normalize_options() { + if (this->options_.is_shared() && this->options_.is_relocatable()) + gold_fatal(_("-shared and -r are incompatible")); + // If the user specifies both -s and -r, convert the -s as -S. // -r requires us to keep externally visible symbols! if (this->options_.strip_all() && this->options_.is_relocatable()) |