diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-14 07:52:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-14 07:52:21 +0000 |
commit | 3728821ffcf74858b028948e224e1dc4695d9112 (patch) | |
tree | 33789e7f02b4a7cece4de72bc9ceb1381dbc34bf /gold/symtab.cc | |
parent | e2827e5f525574e8620bd43c8bcb27dba3407a7f (diff) | |
download | gdb-3728821ffcf74858b028948e224e1dc4695d9112.zip gdb-3728821ffcf74858b028948e224e1dc4695d9112.tar.gz gdb-3728821ffcf74858b028948e224e1dc4695d9112.tar.bz2 |
Support special always-defined symbols for targets.
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()); |