diff options
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index f5e2132..2443023 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1610,7 +1610,8 @@ Symbol_table::sized_write_globals(const Target* target, && sym->object()->is_dynamic() && sym->shndx() == elfcpp::SHN_UNDEF && sym->binding() != elfcpp::STB_WEAK - && !parameters->allow_shlib_undefined()) + && !parameters->allow_shlib_undefined() + && !target->is_always_defined(sym)) { // A very ugly cast. Dynobj* dynobj = static_cast<Dynobj*>(sym->object()); |