- Updated libstdc++ pretty printers to - Remove gdb-libstdc++-v3-python-6.3.1-20170212.tar.bz2 as unused in SUSE. - Add patches for s390x z14 feates [fate #321514, fate #322272] gdb-s390x-1b63490.patch gdb-s390x-289e23a.patch gdb-s390x-8fe09d7.patch gdb-s390x-96235dc.patch gdb-s390x-ad33963.patch - Adjust some patches: gdb-ppc-power7-test.patch gdb-rhbz795424-bitpos-20of25.patch gdb-rhbz795424-bitpos-21of25.patch gdb-vla-intel-fortran-vla-strings.patch - Add some patches from Fedora: gdb-rhbz1420304-s390x-01of35.patch gdb-rhbz1420304-s390x-02of35.patch gdb-rhbz1420304-s390x-03of35.patch gdb-rhbz1420304-s390x-04of35.patch gdb-rhbz1420304-s390x-05of35.patch gdb-rhbz1420304-s390x-06of35.patch gdb-rhbz1420304-s390x-07of35.patch gdb-rhbz1420304-s390x-08of35.patch gdb-rhbz1420304-s390x-09of35.patch gdb-rhbz1420304-s390x-10of35.patch gdb-rhbz1420304-s390x-11of35.patch gdb-rhbz1420304-s390x-12of35.patch gdb-rhbz1420304-s390x-13of35.patch gdb-rhbz1420304-s390x-14of35.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=167
63 lines
2.0 KiB
Diff
63 lines
2.0 KiB
Diff
commit d7ab4911f8aa3e1cd06ece40f74d0b4a532d6a10
|
|
Author: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
|
Date: Mon May 8 19:10:42 2017 +0200
|
|
|
|
S/390: Fix ifunc missing runtime reloc
|
|
|
|
This fixes a problem with a missing R_390_64 reloc against .data for a
|
|
function pointer to an ifunc function.
|
|
|
|
No regressions on s390x.
|
|
|
|
Pushed to mainline.
|
|
|
|
bfd/ChangeLog:
|
|
|
|
2017-05-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
|
|
|
* elf-s390-common.c: Don't check non_got_ref flag.
|
|
* elf32-s390.c (elf_s390_relocate_section): Likewise.
|
|
* elf64-s390.c (elf_s390_relocate_section): Likewise.
|
|
|
|
--- a/bfd/elf-s390-common.c
|
|
+++ b/bfd/elf-s390-common.c
|
|
@@ -161,9 +161,7 @@ keep:
|
|
h->type = STT_FUNC;
|
|
}
|
|
|
|
- /* We need dynamic relocation for STT_GNU_IFUNC symbol only when
|
|
- there is a non-GOT reference in a shared object. */
|
|
- if (!bfd_link_pic (info) || !h->non_got_ref)
|
|
+ if (!bfd_link_pic (info))
|
|
*head = NULL;
|
|
|
|
/* Finally, allocate space. */
|
|
--- a/bfd/elf32-s390.c
|
|
+++ b/bfd/elf32-s390.c
|
|
@@ -2774,7 +2774,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
|
&& s390_is_ifunc_symbol_p (h)
|
|
&& h->def_regular)
|
|
{
|
|
- if (!bfd_link_pic (info) || !h->non_got_ref)
|
|
+ if (!bfd_link_pic (info))
|
|
{
|
|
/* For a non-shared object STT_GNU_IFUNC symbol must
|
|
go through PLT. */
|
|
--- a/bfd/elf64-s390.c
|
|
+++ b/bfd/elf64-s390.c
|
|
@@ -2737,10 +2737,11 @@ elf_s390_relocate_section (bfd *output_bfd,
|
|
&& s390_is_ifunc_symbol_p (h)
|
|
&& h->def_regular)
|
|
{
|
|
- if (!bfd_link_pic (info) || !h->non_got_ref)
|
|
+ if (!bfd_link_pic (info))
|
|
{
|
|
- /* For a non-shared object STT_GNU_IFUNC symbol must
|
|
- go through PLT. */
|
|
+ /* For a non-shared object the symbol will not
|
|
+ change. Hence we can write the address of the
|
|
+ target IPLT slot now. */
|
|
relocation = (htab->elf.iplt->output_section->vma
|
|
+ htab->elf.iplt->output_offset
|
|
+ h ->plt.offset);
|