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.
+2017-07-12 Nick Clifton <nickc@redhat.com>
+
+ Fix compile time warnings using gcc 7.1.1.
+ * 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.
+
2017-07-12 Alan Modra <amodra@gmail.com>
* binary.c (binary_set_section_contents): Don't print filepos in
2017-07-12 Alan Modra <amodra@gmail.com>
* binary.c (binary_set_section_contents): Don't print filepos in
elf_xtensa_get_plt_section (struct bfd_link_info *info, int chunk)
{
bfd *dynobj;
elf_xtensa_get_plt_section (struct bfd_link_info *info, int chunk)
{
bfd *dynobj;
if (chunk == 0)
return elf_hash_table (info)->splt;
if (chunk == 0)
return elf_hash_table (info)->splt;
elf_xtensa_get_gotplt_section (struct bfd_link_info *info, int chunk)
{
bfd *dynobj;
elf_xtensa_get_gotplt_section (struct bfd_link_info *info, int chunk)
{
bfd *dynobj;
if (chunk == 0)
return elf_hash_table (info)->sgotplt;
if (chunk == 0)
return elf_hash_table (info)->sgotplt;
bfd_mach_o_arm_canonicalize_one_reloc (bfd *abfd,
struct mach_o_reloc_info_external *raw,
arelent *res, asymbol **syms)
bfd_mach_o_arm_canonicalize_one_reloc (bfd *abfd,
struct mach_o_reloc_info_external *raw,
arelent *res, asymbol **syms)
bfd_mach_o_reloc_info reloc;
if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms))
bfd_mach_o_reloc_info reloc;
if (!bfd_mach_o_pre_canonicalize_one_reloc (abfd, raw, &reloc, res, syms))
return TRUE;
}
return FALSE;
return TRUE;
}
return FALSE;
case BFD_MACH_O_ARM_RELOC_SECTDIFF:
if (reloc.r_length == 2)
{
case BFD_MACH_O_ARM_RELOC_SECTDIFF:
if (reloc.r_length == 2)
{
return TRUE;
}
return FALSE;
return TRUE;
}
return FALSE;
case BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF:
if (reloc.r_length == 2)
{
case BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF:
if (reloc.r_length == 2)
{
return TRUE;
}
return FALSE;
return TRUE;
}
return FALSE;
case BFD_MACH_O_ARM_RELOC_HALF_SECTDIFF:
switch (reloc.r_length)
{
case BFD_MACH_O_ARM_RELOC_HALF_SECTDIFF:
switch (reloc.r_length)
{
return TRUE;
}
return FALSE;
return TRUE;
}
return FALSE;
case BFD_MACH_O_ARM_RELOC_BR24:
if (reloc.r_length == 2 && reloc.r_pcrel == 1)
{
res->howto = &arm_howto_table[11];
return TRUE;
}
case BFD_MACH_O_ARM_RELOC_BR24:
if (reloc.r_length == 2 && reloc.r_pcrel == 1)
{
res->howto = &arm_howto_table[11];
return TRUE;
}
case BFD_MACH_O_THUMB_RELOC_BR22:
if (reloc.r_length == 2 && reloc.r_pcrel == 1)
{
res->howto = &arm_howto_table[16];
return TRUE;
}
case BFD_MACH_O_THUMB_RELOC_BR22:
if (reloc.r_length == 2 && reloc.r_pcrel == 1)
{
res->howto = &arm_howto_table[16];
return TRUE;
}
case BFD_MACH_O_ARM_RELOC_HALF:
if (reloc.r_pcrel == 0)
switch (reloc.r_length)
case BFD_MACH_O_ARM_RELOC_HALF:
if (reloc.r_pcrel == 0)
switch (reloc.r_length)
res->howto = &arm_howto_table[14];
return TRUE;
}
res->howto = &arm_howto_table[14];
return TRUE;
}
case BFD_MACH_O_ARM_RELOC_PAIR:
if (res[-1].howto == &arm_howto_table[12]
&& reloc.r_length == 0)
case BFD_MACH_O_ARM_RELOC_PAIR:
if (res[-1].howto == &arm_howto_table[12]
&& reloc.r_length == 0)
res->address = res[-1].address;
return TRUE;
}
res->address = res[-1].address;
return TRUE;
}
}
static reloc_howto_type *
}
static reloc_howto_type *
+2017-07-12 Nick Clifton <nickc@redhat.com>
+
+ Fix compile time warnings using gcc 7.1.1.
+ * 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.
+
2017-07-11 Andreas Schwab <schwab@suse.de>
* readelf.c (process_note): Print newline after description data
2017-07-11 Andreas Schwab <schwab@suse.de>
* readelf.c (process_note): Print newline after description data
- sprintf (fmt, "%%%s%s", DWARF_VMA_FMT, fmtch);
+ if (fmtch)
+ sprintf (fmt, "%%%s%s", DWARF_VMA_FMT, fmtch);
+ else
+ sprintf (fmt, "%%%s", DWARF_VMA_FMT);
snprintf (ret, sizeof (buf[0].place), fmt, value);
return ret;
}
snprintf (ret, sizeof (buf[0].place), fmt, value);
return ret;
}
walk_tree_type (struct coff_sfile *sfile, struct coff_symbol *symbol,
struct coff_type *type, int nest)
{
walk_tree_type (struct coff_sfile *sfile, struct coff_symbol *symbol,
struct coff_type *type, int nest)
{
- if (symbol->type->type == coff_function_type)
- {
- struct IT_dty dty;
- dty.end = 0;
- dty.neg = 0x1001;
+ dty.spare = 0;
+ dty.end = 0;
+ dty.neg = 0x1001;
+ if (symbol->type->type == coff_function_type)
+ {
sysroff_swap_dty_out (file, &dty);
walk_tree_type_1 (sfile, symbol, type, nest);
dty.end = 1;
sysroff_swap_dty_out (file, &dty);
walk_tree_type_1 (sfile, symbol, type, nest);
dty.end = 1;
- struct IT_dty dty;
-
- dty.end = 0;
- dty.neg = 0x1001;
sysroff_swap_dty_out (file, &dty);
walk_tree_type_1 (sfile, symbol, type, nest);
dty.end = 1;
sysroff_swap_dty_out (file, &dty);
walk_tree_type_1 (sfile, symbol, type, nest);
dty.end = 1;
+2017-07-12 Nick Clifton <nickc@redhat.com>
+
+ Fix compile time warnings using gcc 7.1.1.
+ * config/tc-pru.c (md_assemble): Add continue statement after
+ handling 'E' operand character.
+ * config/tc-v850.c (md_assemble): Initialise the 'insn' variable.
+
2017-07-05 James Greenhalgh <james.greenhalgh@arm.com>
* config/tc-arm.c (arm_cpus): Add Cortex-A55 and Cortex-A75.
2017-07-05 James Greenhalgh <james.greenhalgh@arm.com>
* config/tc-arm.c (arm_cpus): Add Cortex-A55 and Cortex-A75.
static PRU_MODE pru_mode = PRU_MODE_ASSEMBLE;
/* This function is used to in self-checking mode
static PRU_MODE pru_mode = PRU_MODE_ASSEMBLE;
/* This function is used to in self-checking mode
- to check the assembled instruction
- opcode should be the assembled opcode, and exp_opcode
+ to check the assembled instruction.
+ OPCODE should be the assembled opcode, and exp_opcode
the parsed string representing the expected opcode. */
the parsed string representing the expected opcode. */
static void
pru_check_assembly (unsigned int opcode, const char *exp_opcode)
{
static void
pru_check_assembly (unsigned int opcode, const char *exp_opcode)
{
case 'E':
pru_check_assembly (insn->insn_code, *argtk++);
case 'E':
pru_check_assembly (insn->insn_code, *argtk++);
default:
BAD_CASE (*argp);
}
default:
BAD_CASE (*argp);
}
const unsigned char *opindex_ptr;
int next_opindex;
int relaxable = 0;
const unsigned char *opindex_ptr;
int next_opindex;
int relaxable = 0;
+ unsigned long insn = 0;
unsigned long insn_size;
char *f = NULL;
int i;
unsigned long insn_size;
char *f = NULL;
int i;
dwarf2_emit_insn (0);
/* Write out the instruction. */
dwarf2_emit_insn (0);
/* Write out the instruction. */
if (relaxable && fc > 0)
{
insn_size = 2;
if (relaxable && fc > 0)
{
insn_size = 2;