aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-tilepro.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-08-24 22:16:41 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-08-24 22:16:41 +0000
commit387f8054ca819e73bd9d0c17d23dbe4e68c67947 (patch)
treef5de35e954fd23c64de9b724604b5a96394ac275 /bfd/elf32-tilepro.c
parentb122423813ed1cf2255243e21bd0a6229fcadef6 (diff)
downloadgdb-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/elf32-tilepro.c')
-rw-r--r--bfd/elf32-tilepro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c
index 62b9553..c36da2b 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)