aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-attrs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-02-19 23:36:55 +1030
committerAlan Modra <amodra@gmail.com>2018-02-19 23:55:55 +1030
commitf2b740ac53a3347b7e0fe1a09e52f6311265e709 (patch)
tree8f8cd6cbcd98022abe6c1a1d199963ce41d476cf /bfd/elf-attrs.c
parent8979927ae719d1a16d2acd01a11cc17ed3c78dfb (diff)
downloadgdb-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/elf-attrs.c')
-rw-r--r--bfd/elf-attrs.c5
1 files changed, 3 insertions, 2 deletions
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;