This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
warning fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Sat, 19 Jun 2004 11:56:33 +0930
- Subject: warning fix
Silence a compiler warning in elflink.c when building a 32-bit target.
include/elf/ChangeLog
* common.h (ELF64_R_INFO): Warning fix.
Index: include/elf/common.h
===================================================================
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.66
diff -u -p -r1.66 common.h
--- include/elf/common.h 11 May 2004 17:08:38 -0000 1.66
+++ include/elf/common.h 18 Jun 2004 16:39:26 -0000
@@ -1,6 +1,6 @@
/* ELF support for BFD.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003
+ 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support, from information published
@@ -495,7 +495,7 @@
#define ELF64_R_SYM(i) ((i) >> 32)
#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
-#define ELF64_R_INFO(s,t) (((bfd_vma) (s) << 32) + (bfd_vma) (t))
+#define ELF64_R_INFO(s,t) (((bfd_vma) (s) << 31 << 1) + (bfd_vma) (t))
/* Dynamic section tags. */
--
Alan Modra
IBM OzLabs - Linux Technology Centre