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 | 0776254a06442eef88af248cdcdb73c537f03767 (patch) | |
tree | a988b6a1738b6dcf063d9afd3c2ba2f0e0912077 /bfd/elf32-tilepro.c | |
parent | 36c5c6a14d848738a4d4a930837c59e01e7b4cb3 (diff) | |
download | binutils-redhat-0776254a06442eef88af248cdcdb73c537f03767.tar.gz |
* 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/elf32-tilepro.c')
-rw-r--r-- | bfd/elf32-tilepro.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c index 62b9553647..c36da2bee2 100644 --- a/bfd/elf32-tilepro.c +++ b/bfd/elf32-tilepro.c @@ -3909,8 +3909,9 @@ tilepro_elf_finish_dynamic_sections (bfd *output_bfd, PLT_ENTRY_SIZE - PLT_HEADER_SIZE); } - elf_section_data (splt->output_section)->this_hdr.sh_entsize - = PLT_ENTRY_SIZE; + if (elf_section_data (splt->output_section) != NULL) + elf_section_data (splt->output_section)->this_hdr.sh_entsize + = PLT_ENTRY_SIZE; } if (htab->elf.sgotplt) |