summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2008-12-04 08:43:26 +0000
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2008-12-04 08:43:26 +0000
commit1cdd9d6d10ee334ab8d2c0f6aabf9e06d64ab843 (patch)
tree9828f6c5e1687ecc810801ff0c17a363f8c5e997 /bfd
parent2c36ed58ed01300bca52900a14ff42bcb860a04c (diff)
downloadgdb-1cdd9d6d10ee334ab8d2c0f6aabf9e06d64ab843.tar.gz
2008-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* elf64-s390.c (elf_s390_check_relocs): Initialize htab->elf.dynobj if necessary.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-s390.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 73615b7a31d..dd67ef2f3e5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 5eb44b2274a..7d8795ec315 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);