From 0bae9e9ec550c940e263b37f577bf11b2dabf934 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 12 Jul 2017 12:17:02 +0100 Subject: Fix compile time warnings building the binutils with gcc 7.1.1. bfd * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of plt_name buffer. (elf_xtensa_get_gotplt_section): Increase length of got_name buffer. * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a default return of FALSE. * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a default return of FALSE. binutils * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to sprintf. * srconv.c (walk_tree_type): Initialise the spare field of the IT_dty structure. gas * config/tc-pru.c (md_assemble): Add continue statement after handling 'E' operand character. * config/tc-v850.c (md_assemble): Initialise the 'insn' variable. --- bfd/elf32-xtensa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/elf32-xtensa.c') diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index b3ddbf1..19a162e 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -10841,7 +10841,7 @@ static asection * elf_xtensa_get_plt_section (struct bfd_link_info *info, int chunk) { bfd *dynobj; - char plt_name[10]; + char plt_name[17]; if (chunk == 0) return elf_hash_table (info)->splt; @@ -10856,7 +10856,7 @@ static asection * elf_xtensa_get_gotplt_section (struct bfd_link_info *info, int chunk) { bfd *dynobj; - char got_name[14]; + char got_name[21]; if (chunk == 0) return elf_hash_table (info)->sgotplt; -- cgit v1.1