aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 41fa678..88f3db3 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -1136,7 +1136,7 @@ Command_line::normalize_options()
if (this->options_.shared() && this->options_.relocatable())
gold_fatal(_("-shared and -r are incompatible"));
- if (this->options_.oformat() != General_options::OBJECT_FORMAT_ELF
+ if (this->options_.oformat_enum() != General_options::OBJECT_FORMAT_ELF
&& (this->options_.shared() || this->options_.relocatable()))
gold_fatal(_("binary output format not compatible with -shared or -r"));