diff options
author | Alan Modra <amodra@gmail.com> | 2017-07-03 21:56:29 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-07-03 22:03:28 +0930 |
commit | cd9af601e60240bb38dc58ce7e69abd5f2972ec7 (patch) | |
tree | 9830e8235e2ffee9aaa5b006be76fa9b04e1c036 /bfd/elf32-ppc.c | |
parent | 33c734b2f860f77badb1e25d16e144e9db77d1bf (diff) | |
download | gdb-cd9af601e60240bb38dc58ce7e69abd5f2972ec7.zip gdb-cd9af601e60240bb38dc58ce7e69abd5f2972ec7.tar.gz gdb-cd9af601e60240bb38dc58ce7e69abd5f2972ec7.tar.bz2 |
Miscellaneous format string fixes
* elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to
print d_tag.
(bfd_elf_print_symbol): Don't cast symbol->flags.
(_bfd_elf_symbol_from_bfd_symbol): Likewise.
* elf32-ppc.c (ppc_elf_begin_write_processing): Correct
_bfd_error_handler argument order.
(ppc_elf_merge_private_bfd_data): Don't cast flags.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index a4814fc..0e99272 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2849,7 +2849,7 @@ ppc_elf_begin_write_processing (bfd *abfd, struct bfd_link_info *link_info) free (buffer); if (error_message) - _bfd_error_handler (error_message, ibfd, APUINFO_SECTION_NAME); + _bfd_error_handler (error_message, APUINFO_SECTION_NAME, ibfd); } /* Prevent the output section from accumulating the input sections' @@ -4906,9 +4906,9 @@ ppc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) error = TRUE; _bfd_error_handler /* xgettext:c-format */ - (_("%B: uses different e_flags (0x%lx) fields " - "than previous modules (0x%lx)"), - ibfd, (long) new_flags, (long) old_flags); + (_("%B: uses different e_flags (%#x) fields " + "than previous modules (%#x)"), + ibfd, new_flags, old_flags); } if (error) |