public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Fix building Loongarch BFD with a 32-bit compiler
@ 2024-04-29  8:02 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2024-04-29  8:02 UTC (permalink / raw)
  To: binutils-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=679ad6e126868c462d8339eb837efb5a91a091af

commit 679ad6e126868c462d8339eb837efb5a91a091af
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Apr 29 09:02:43 2024 +0100

    Fix building Loongarch BFD with a 32-bit compiler

Diff:
---
 bfd/elfnn-loongarch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 : _("<unknown>"), name);
+    abfd, sec, (long) rel->r_offset, r ? r->name : _("<unknown>"), name);
   bfd_set_error (bfd_error_bad_value);
   return false;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-29  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-29  8:02 [binutils-gdb] Fix building Loongarch BFD with a 32-bit compiler Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).