]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/
authorTristan Gingold <gingold@adacore.com>
Mon, 12 Nov 2012 09:04:13 +0000 (09:04 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 12 Nov 2012 09:04:13 +0000 (09:04 +0000)
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.

bfd/ChangeLog
bfd/elf32-s390.c
bfd/elf64-s390.c

index fd717c96f73d550a7d9f19b8958f136b31e0b19c..62988801d960760c777d8be63a48c40dce88ce67 100644 (file)
@@ -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.
index 8d654d5486705c5372021493543ae0c416ecc232..92a1e6f657a8accf7d209d444538dc7cb0b598dd 100644 (file)
@@ -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;
 
index 8512fc0700beae889d0ec4de30c45eed75333ac2..62ce6dd5394684fc366bca9e94b31169548604e9 100644 (file)
@@ -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;