aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
committerIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
commitfbfba5088712eb014b9051baa71f9636359d159e (patch)
tree6836ec1f682dc1c4954429d9be124c268d530526 /gold/symtab.cc
parent755ab8af10558c40e5090e92c46bbbd89815c292 (diff)
downloadfsf-binutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.zip
fsf-binutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz
fsf-binutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2
Support creating empty output when there are no input objects.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 288b966..c7f6816 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -1791,7 +1791,7 @@ Symbol_table::sized_write_globals(const Input_objects* input_objects,
const Stringpool* dynpool,
Output_file* of) const
{
- const Target* const target = input_objects->target();
+ const Target* const target = parameters->target();
const int sym_size = elfcpp::Elf_sizes<size>::sym_size;
@@ -1966,7 +1966,7 @@ Symbol_table::warn_about_undefined_dynobj_symbol(
&& sym->shndx() == elfcpp::SHN_UNDEF
&& sym->binding() != elfcpp::STB_WEAK
&& !parameters->allow_shlib_undefined()
- && !input_objects->target()->is_defined_by_abi(sym)
+ && !parameters->target()->is_defined_by_abi(sym)
&& !input_objects->found_in_system_library_directory(sym->object()))
{
// A very ugly cast.