From 789c37853767de8be643f87673635bcf7864bafa Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 17 Nov 2020 10:38:54 +0000 Subject: [PATCH] pr26902 # DP: Fix PR gold/26902, jump to long branch on powerpc. # DP: Fix PR gold/26902, jump to long branch on powerpc. gold/ 2020-11-16 Michael Hudson-Doyle PR 26902 * powerpc.cc (Relocate::relocate): Do not include local entry offset of target function when computing the address of a stub. Gbp-Pq: Name pr26902.diff --- gold/powerpc.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 476fb4e58..79c25a637 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -11094,8 +11094,7 @@ Target_powerpc::Relocate::relocate( + ent->off_); if (size == 64 && r_type != elfcpp::R_PPC64_REL24_NOTOC) - value += (elfcpp::ppc64_decode_local_entry(ent->other_) - + ent->tocoff_); + value += ent->tocoff_; } has_stub_value = true; } -- 2.30.2