summaryrefslogtreecommitdiff
path: root/gold/archive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/archive.cc')
-rw-r--r--gold/archive.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/archive.cc b/gold/archive.cc
index 2125608e7d..4e15806978 100644
--- a/gold/archive.cc
+++ b/gold/archive.cc
@@ -93,7 +93,7 @@ Archive::setup(Task* task)
this->read_armap(sarmag + sizeof(Archive_header), armap_size);
off = sarmag + sizeof(Archive_header) + armap_size;
}
- else if (!this->input_file_->options().include_whole_archive())
+ else if (!this->input_file_->options().whole_archive())
gold_error(_("%s: no archive symbol table (run ranlib)"),
this->name().c_str());
@@ -265,7 +265,7 @@ void
Archive::add_symbols(Symbol_table* symtab, Layout* layout,
Input_objects* input_objects)
{
- if (this->input_file_->options().include_whole_archive())
+ if (this->input_file_->options().whole_archive())
return this->include_all_members(symtab, layout, input_objects);
const size_t armap_size = this->armap_.size();