This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
xtensa warning fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Tue, 12 Jul 2005 21:21:48 +0930
- Subject: xtensa warning fix
Triggers with 64-bit bfd_vma and 32-bit long.
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
Index: bfd/elf32-xtensa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xtensa.c,v
retrieving revision 1.55
diff -u -p -r1.55 elf32-xtensa.c
--- bfd/elf32-xtensa.c 8 Jul 2005 06:20:01 -0000 1.55
+++ bfd/elf32-xtensa.c 12 Jul 2005 09:40:48 -0000
@@ -1930,7 +1930,8 @@ bfd_elf_xtensa_reloc (bfd *abfd,
*error_message = "";
*error_message = vsprint_msg (*error_message, ": (%s + 0x%lx)",
strlen (symbol->name) + 17,
- symbol->name, reloc_entry->addend);
+ symbol->name,
+ (unsigned long) reloc_entry->addend);
}
return flag;
--
Alan Modra
IBM OzLabs - Linux Technology Centre