From 6f678622568cd5a955b95f7cdbea6be795a757fd Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Thu, 4 Dec 2008 08:43:26 +0000 Subject: 2008-12-04 Andreas Krebbel * elf64-s390.c (elf_s390_check_relocs): Initialize htab->elf.dynobj if necessary. --- bfd/ChangeLog | 5 +++++ bfd/elf64-s390.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 73615b7a31..dd67ef2f3e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-12-04 Andreas Krebbel + + * elf64-s390.c (elf_s390_check_relocs): Initialize + htab->elf.dynobj if necessary. + 2008-12-03 Nick Clifton * syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION. diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 5eb44b2274..7d8795ec31 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -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); -- cgit v1.2.1