bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/26902] gold powerpc inserts jump to middle of long branch stub


From: michael.hudson at canonical dot com
Subject: [Bug gold/26902] gold powerpc inserts jump to middle of long branch stub
Date: Mon, 16 Nov 2020 01:12:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26902

--- Comment #1 from Michael Hudson-Doyle <michael.hudson at canonical dot com> 
---
This not-thought-through at all patch:

diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index b0d6a74bec..1ef8c47053 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -11092,10 +11092,6 @@ Target_powerpc<size, big_endian>::Relocate::relocate(
                      value = (stub_table->stub_address()
                               + stub_table->plt_size()
                               + ent->off_);
-                     if (size == 64
-                         && r_type != elfcpp::R_PPC64_REL24_NOTOC)
-                       value += (elfcpp::ppc64_decode_local_entry(ent->other_)
-                                 + ent->tocoff_);
                    }
                  has_stub_value = true;
                }


fixes the issue for me. I certainly don't know if it would have other bad
effects.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]