diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:16:41 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:16:41 +0000 |
commit | 387f8054ca819e73bd9d0c17d23dbe4e68c67947 (patch) | |
tree | f5de35e954fd23c64de9b724604b5a96394ac275 /bfd/elfxx-sparc.c | |
parent | b122423813ed1cf2255243e21bd0a6229fcadef6 (diff) | |
download | gdb-387f8054ca819e73bd9d0c17d23dbe4e68c67947.zip gdb-387f8054ca819e73bd9d0c17d23dbe4e68c67947.tar.gz gdb-387f8054ca819e73bd9d0c17d23dbe4e68c67947.tar.bz2 |
* elf32-tilepro.c (tilepro_elf_finish_dynamic_sections): Don't
set GOT's entry size if there is no ELF section data.
* elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections):
Likewise.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r-- | bfd/elfxx-sparc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index ba00105..94da360 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -4793,9 +4793,10 @@ _bfd_sparc_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *i } } - elf_section_data (splt->output_section)->this_hdr.sh_entsize - = (htab->is_vxworks || !ABI_64_P (output_bfd)) - ? 0 : htab->plt_entry_size; + if (elf_section_data (splt->output_section) != NULL) + elf_section_data (splt->output_section)->this_hdr.sh_entsize + = ((htab->is_vxworks || !ABI_64_P (output_bfd)) + ? 0 : htab->plt_entry_size); } /* Set the first entry in the global offset table to the address of |