diff options
Diffstat (limited to 'bfd/elf64-s390.c')
-rw-r--r-- | bfd/elf64-s390.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 0522850..41b19bc 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -3547,8 +3547,9 @@ elf_s390_finish_dynamic_sections (bfd *output_bfd, bfd_put_64 (output_bfd, (bfd_vma) 0, htab->elf.hgot->root.u.def.section->contents + 16); } - elf_section_data (htab->elf.sgot->output_section) - ->this_hdr.sh_entsize = 8; + if (elf_section_data (htab->elf.splt->output_section) != NULL) + elf_section_data (htab->elf.sgot->output_section) + ->this_hdr.sh_entsize = 8; } /* Finish dynamic symbol for local IFUNC symbols. */ |