diff options
author | Alan Modra <amodra@gmail.com> | 2018-02-19 23:36:55 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-02-19 23:55:55 +1030 |
commit | f2b740ac53a3347b7e0fe1a09e52f6311265e709 (patch) | |
tree | 8f8cd6cbcd98022abe6c1a1d199963ce41d476cf /bfd/elfxx-mips.c | |
parent | 8979927ae719d1a16d2acd01a11cc17ed3c78dfb (diff) | |
download | gdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.zip gdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.tar.gz gdb-f2b740ac53a3347b7e0fe1a09e52f6311265e709.tar.bz2 |
Add attribute printf to _bfd_error_handler
and fix a few stray errors.
* elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
arguments.
* elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
* elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
(_bfd_riscv_relax_pc): Likewise and fix typos.
* libbfd-in.h (_bfd_error_handler): Add attribute printf.
* libbfd.h: Regenerate.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 7253090..211f6f9 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -14404,9 +14404,10 @@ _bfd_mips_elf_final_link (bfd *abfd, struct bfd_link_info *info) if (o->size != sizeof (Elf32_External_RegInfo)) { _bfd_error_handler - (_("%pB: .reginfo section size should be %d bytes, " - "actual size is %d"), - abfd, sizeof (Elf32_External_RegInfo), o->size); + (_("%pB: .reginfo section size should be %ld bytes, " + "actual size is %" PRId64), + abfd, (unsigned long) sizeof (Elf32_External_RegInfo), + (int64_t) o->size); return FALSE; } |