From 565ed01a4e0e3584f24580177822a5271b1c0c8b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 28 Aug 2017 16:27:33 +0930 Subject: [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_. --- gold/target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/target.h') diff --git a/gold/target.h b/gold/target.h index 5ca8435..cf6d902 100644 --- a/gold/target.h +++ b/gold/target.h @@ -852,7 +852,7 @@ class Sized_target : public Target // pre-existing symbol. SYM is the new symbol, seen in OBJECT. // VERSION is the version of SYM. This will only be called if // has_resolve() returns true. - virtual void + virtual bool resolve(Symbol*, const elfcpp::Sym&, Object*, const char*) { gold_unreachable(); } -- cgit v1.1