2008-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Thu, 4 Dec 2008 08:43:26 +0000 (08:43 +0000)
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Thu, 4 Dec 2008 08:43:26 +0000 (08:43 +0000)
* elf64-s390.c (elf_s390_check_relocs): Initialize
htab->elf.dynobj if necessary.

bfd/ChangeLog
bfd/elf64-s390.c

index 73615b7a31d5faba270e191b653181b592704d22..dd67ef2f3e5ccfe6348e1b416f2b8d30a58b01cf 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+       
+       * elf64-s390.c (elf_s390_check_relocs): Initialize
+       htab->elf.dynobj if necessary.
+
 2008-12-03  Nick Clifton  <nickc@redhat.com>
 
        * syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION.
index 5eb44b2274a4b41350a9fba3567fdc4c344fd757..7d8795ec31501af4eb343443ae79d5d46abe3ae3 100644 (file)
@@ -1246,6 +1246,9 @@ elf_s390_check_relocs (abfd, info, sec, relocs)
                 this reloc.  */
              if (sreloc == NULL)
                {
+                 if (htab->elf.dynobj == NULL)
+                   htab->elf.dynobj = abfd;
+
                  sreloc = _bfd_elf_make_dynamic_reloc_section
                    (sec, htab->elf.dynobj, 3, abfd, /*rela?*/ TRUE);