aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-s390.c
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
commit440e9cd2eac75c2fac320efbb4307247e7dab404 (patch)
tree0d882a8f90af96884a55f34c5103e97f9984ce62 /bfd/elf64-s390.c
parent171191bac50ef813c1fb456551662df9361bd683 (diff)
downloadgdb-440e9cd2eac75c2fac320efbb4307247e7dab404.zip
gdb-440e9cd2eac75c2fac320efbb4307247e7dab404.tar.gz
gdb-440e9cd2eac75c2fac320efbb4307247e7dab404.tar.bz2
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/elf64-s390.c')
-rw-r--r--bfd/elf64-s390.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 5eb44b2..7d8795e 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);