From f2b740ac53a3347b7e0fe1a09e52f6311265e709 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 19 Feb 2018 23:36:55 +1030 Subject: 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. --- bfd/elf-attrs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bfd/elf-attrs.c') diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c index 330c621..670012a 100644 --- a/bfd/elf-attrs.c +++ b/bfd/elf-attrs.c @@ -472,8 +472,9 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr) len -= section_len; if (section_len <= 4) { - _bfd_error_handler (_("%pB: error: attribute section length too small: %ld"), - abfd, section_len); + _bfd_error_handler + (_("%pB: error: attribute section length too small: %" PRId64), + abfd, (int64_t) section_len); break; } section_len -= 4; -- cgit v1.1