[GOLD] fix jump to long branch on powerpc
PR 26902 * powerpc.cc (Relocate::relocate): Do not include local entry offset of target function when computing the address of a stub.
This commit is contained in:
parent
7cc340055d
commit
f1e05b1978
@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2020-11-08 H.J. Lu <hongjiu.lu@intel.com>
|
2020-11-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR gold/26200
|
PR gold/26200
|
||||||
|
@ -11094,8 +11094,7 @@ Target_powerpc<size, big_endian>::Relocate::relocate(
|
|||||||
+ ent->off_);
|
+ ent->off_);
|
||||||
if (size == 64
|
if (size == 64
|
||||||
&& r_type != elfcpp::R_PPC64_REL24_NOTOC)
|
&& r_type != elfcpp::R_PPC64_REL24_NOTOC)
|
||||||
value += (elfcpp::ppc64_decode_local_entry(ent->other_)
|
value += ent->tocoff_;
|
||||||
+ ent->tocoff_);
|
|
||||||
}
|
}
|
||||||
has_stub_value = true;
|
has_stub_value = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user