summaryrefslogtreecommitdiffstats
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-21 07:20:01 +0000
committerIan Lance Taylor <iant@google.com>2007-09-21 07:20:01 +0000
commit7e1edb9089c4eec761d09d9bb0ce675eb0bcbc2b (patch)
tree8e9869d1fd6febfdfdc5e754ba12f36e899d9bb2 /gold/object.cc
parentbe9d5a933eb75809b583dc29bc7deb7690954d12 (diff)
downloadppe42-binutils-7e1edb9089c4eec761d09d9bb0ce675eb0bcbc2b.tar.gz
ppe42-binutils-7e1edb9089c4eec761d09d9bb0ce675eb0bcbc2b.zip
Add global parameters.
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 1d20b764ae..39022c66dd 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;
}
OpenPOWER on IntegriCloud