pr26902
authorMatthias Klose <doko@debian.org>
Tue, 1 Dec 2020 21:55:01 +0000 (21:55 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 1 Dec 2020 21:55:01 +0000 (21:55 +0000)
# 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  <michael.hudson@canonical.com>

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

index 476fb4e588d85f383b4d68bd9746d9ebb6be4bba..79c25a637dd48a818d103e02c6e629b3d6be48c3 100644 (file)
@@ -11094,8 +11094,7 @@ Target_powerpc<size, big_endian>::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;
                }