From: Nick Clifton Date: Mon, 29 Apr 2024 08:02:43 +0000 (+0100) Subject: Fix building Loongarch BFD with a 32-bit compiler X-Git-Tag: gdb-15-branchpoint~221 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=679ad6e126868c462d8339eb837efb5a91a091af;p=thirdparty%2Fbinutils-gdb.git Fix building Loongarch BFD with a 32-bit compiler --- diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 4761ee1851c..4f1754e58d8 100644 --- a/bfd/elfnn-loongarch.c +++ b/bfd/elfnn-loongarch.c @@ -782,7 +782,7 @@ bad_static_reloc (bfd *abfd, const Elf_Internal_Rela *rel, asection *sec, (*_bfd_error_handler) (_("%pB:(%pA+%#lx): relocation %s against `%s` can not be used when making " "a shared object; recompile with -fPIC"), - abfd, sec, rel->r_offset, r ? r->name : _(""), name); + abfd, sec, (long) rel->r_offset, r ? r->name : _(""), name); bfd_set_error (bfd_error_bad_value); return false; }