diff options
author | Alan Modra <amodra@gmail.com> | 2017-07-11 19:18:47 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-07-11 19:18:47 +0930 |
commit | 2c4d9cbe519e4050d067069e2d8910c42dab0157 (patch) | |
tree | 6767923728f75ff5c83cdf102594aa1662b4e4cd /bfd | |
parent | 4162bb66c684478bfd0f6f0e121c25b6830d8191 (diff) | |
download | gdb-2c4d9cbe519e4050d067069e2d8910c42dab0157.zip gdb-2c4d9cbe519e4050d067069e2d8910c42dab0157.tar.gz gdb-2c4d9cbe519e4050d067069e2d8910c42dab0157.tar.bz2 |
ppc32 use of %x in einfo format
einfo doesn't support %x.
* elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected
instruction" error using _bfd_error_handler, not einfo.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-ppc.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 111afcb..b60bda1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-07-11 Alan Modra <amodra@gmail.com> + + * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected + instruction" error using _bfd_error_handler, not einfo. + 2017-07-10 Nick Clifton <nickc@redhat.com> * coffcode.h (coff_slurp_symbol_table): Do not include an entry diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 0e99272..1adca7e 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -8284,9 +8284,9 @@ ppc_elf_relocate_section (bfd *output_bfd, r_type = R_PPC_GOT16_LO; } else - info->callbacks->einfo + _bfd_error_handler /* xgettext:c-format */ - (_("%H: error: %s with unexpected instruction %x\n"), + (_("%B(%A+#Lx): error: %s with unexpected instruction %#x"), input_bfd, input_section, rel->r_offset, "R_PPC_ADDR16_HA", insn); } @@ -8319,9 +8319,9 @@ ppc_elf_relocate_section (bfd *output_bfd, rel->r_info = ELF32_R_INFO (0, r_type); } else - info->callbacks->einfo + _bfd_error_handler /* xgettext:c-format */ - (_("%H: error: %s with unexpected instruction %x\n"), + (_("%B(%A+#Lx): error: %s with unexpected instruction %#x"), input_bfd, input_section, rel->r_offset, "R_PPC_ADDR16_LO", insn); } |