diff options
author | Alan Modra <amodra@gmail.com> | 2017-08-28 16:27:33 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-08-28 16:27:33 +0930 |
commit | 565ed01a4e0e3584f24580177822a5271b1c0c8b (patch) | |
tree | e9b966a4414efec1764b7157318faa9d0cd8435e /gold/symtab.cc | |
parent | 41e52377486950e32a1bc121e4c42abc8561aee5 (diff) | |
download | gdb-565ed01a4e0e3584f24580177822a5271b1c0c8b.zip gdb-565ed01a4e0e3584f24580177822a5271b1c0c8b.tar.gz gdb-565ed01a4e0e3584f24580177822a5271b1c0c8b.tar.bz2 |
[GOLD] Symbol flag for PowerPC64 localentry:0 tracking
This patch provides a flag for PowerPC64 ELFv2 use in class Symbol,
and modifies Sized_target::resolve to return whether the symbol has
been resolved. If not, normal processing continues. I use this for
PowerPC64 ELFv2 to keep track of whether a symbol has any definition
with non-zero localentry, in order to disable --plt-localentry for
that symbol.
PR 21847
* powerpc.cc (Target_powerpc::is_elfv2_localentry0): Test
non_zero_localentry.
(Target_powerpc::resolve): New function.
(powerpc_info): Set has_resolve for 64-bit.
* target.h (Sized_target::resolve): Return bool.
* resolve.cc (Symbol_table::resolve): Continue with normal
processing when target resolve returns false.
* symtab.h (Symbol::non_zero_localentry, set_non_zero_localentry):
New accessors.
(Symbol::non_zero_localentry_): New flag bit.
* symtab.cc (Symbol::init_fields): Init non_zero_localentry_.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index 43909ff..7e0a3f8 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -81,6 +81,7 @@ Symbol::init_fields(const char* name, const char* version, this->undef_binding_weak_ = false; this->is_predefined_ = false; this->is_protected_ = false; + this->non_zero_localentry_ = false; } // Return the demangled version of the symbol's name, but only |