]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix building Loongarch BFD with a 32-bit compiler
authorNick Clifton <nickc@redhat.com>
Mon, 29 Apr 2024 08:02:43 +0000 (09:02 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 29 Apr 2024 08:02:43 +0000 (09:02 +0100)
bfd/elfnn-loongarch.c

index 4761ee1851c4332f74b159f7731964c3af714286..4f1754e58d831995109071f4a061208873534354 100644 (file)
@@ -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 : _("<unknown>"), name);
+    abfd, sec, (long) rel->r_offset, r ? r->name : _("<unknown>"), name);
   bfd_set_error (bfd_error_bad_value);
   return false;
 }