aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2012-11-05 12:31:08 +0000
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2012-11-05 12:31:08 +0000
commit0cb79d6955c226a3639ae92f771509754ed3276d (patch)
treecb7af19a2b62074f71d6a8a524bed6de00920d43 /bfd
parent0a6f1bf2f98aae39f737589251096547eb30a3fc (diff)
downloadgdb-0cb79d6955c226a3639ae92f771509754ed3276d.zip
gdb-0cb79d6955c226a3639ae92f771509754ed3276d.tar.gz
gdb-0cb79d6955c226a3639ae92f771509754ed3276d.tar.bz2
2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR target/14788 * elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for local ifunc symbols. * elf64-s390.c (elf_s390_relocate_section): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-s390.c3
-rw-r--r--bfd/elf64-s390.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c28f203..df18d95 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
+
+ PR target/14788
+ * elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for
+ local ifunc symbols.
+ * elf64-s390.c (elf_s390_relocate_section): Likewise.
+
2012-11-05 Alan Modra <amodra@gmail.com>
* configure.in: Apply 2012-09-10 change to config.in here.
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index d6eedfa..7a9d89c 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -1013,6 +1013,9 @@ elf_s390_check_relocs (bfd *abfd,
{
struct plt_entry *plt;
+ if (htab->elf.dynobj == NULL)
+ htab->elf.dynobj = abfd;
+
if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info))
return FALSE;
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 19926c6..2b6d9bf 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -937,6 +937,9 @@ elf_s390_check_relocs (bfd *abfd,
{
struct plt_entry *plt;
+ if (htab->elf.dynobj == NULL)
+ htab->elf.dynobj = abfd;
+
if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info))
return FALSE;