From fbfba5088712eb014b9051baa71f9636359d159e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 6 Feb 2008 20:32:10 +0000 Subject: Support creating empty output when there are no input objects. --- gold/symtab.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gold/symtab.cc') 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::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. -- cgit v1.1