aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 1d20b76..39022c6 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -386,8 +386,7 @@ Sized_relobj<size, big_endian>::include_linkonce_section(
template<int size, bool big_endian>
void
-Sized_relobj<size, big_endian>::do_layout(const General_options& options,
- Symbol_table* symtab,
+Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab,
Layout* layout,
Read_symbols_data* sd)
{
@@ -427,7 +426,7 @@ Sized_relobj<size, big_endian>::do_layout(const General_options& options,
if (this->handle_gnu_warning_section(name, i, symtab))
{
- if (!options.is_relocatable())
+ if (!parameters->output_is_object())
omit[i] = true;
}