This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ppc32 use of %x in einfo format
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 11 Jul 2017 23:17:49 +0930
- Subject: Re: ppc32 use of %x in einfo format
- Authentication-results: sourceware.org; auth=none
- References: <20170711100851.GT14520@bubble.grove.modra.org>
On Tue, Jul 11, 2017 at 07:38:51PM +0930, Alan Modra wrote:
> einfo doesn't support %x.
* elf32-ppc.c (ppc_elf_relocate_section): Fix typo.
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 1adca7e..27d62ab 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -8286,7 +8286,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
else
_bfd_error_handler
/* xgettext:c-format */
- (_("%B(%A+#Lx): error: %s with unexpected instruction %#x"),
+ (_("%B(%A+%#Lx): error: %s with unexpected instruction %#x"),
input_bfd, input_section, rel->r_offset,
"R_PPC_ADDR16_HA", insn);
}
@@ -8321,7 +8321,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
else
_bfd_error_handler
/* xgettext:c-format */
- (_("%B(%A+#Lx): error: %s with unexpected instruction %#x"),
+ (_("%B(%A+%#Lx): error: %s with unexpected instruction %#x"),
input_bfd, input_section, rel->r_offset,
"R_PPC_ADDR16_LO", insn);
}
--
Alan Modra
Australia Development Lab, IBM