* warning fix
@ 2004-06-19 2:26 Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2004-06-19 2:26 UTC (permalink / raw)
To: binutils
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* warning fix
@ 2002-06-07 8:08 Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2002-06-07 8:08 UTC (permalink / raw)
To: binutils
entry->pattern is a "const char *".
* emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.7
diff -u -p -r1.7 ppc64elf.em
--- ld/emultempl/ppc64elf.em 22 May 2002 09:04:48 -0000 1.7
+++ ld/emultempl/ppc64elf.em 7 Jun 2002 12:48:06 -0000
@@ -349,7 +349,7 @@ gld${EMULATION_NAME}_new_vers_pattern (e
&& next->match == entry->match)
{
next = entry->next;
- free (entry->pattern);
+ free ((char *) entry->pattern);
free (entry);
return next;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-19 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-19 2:26 warning fix Alan Modra
-- strict thread matches above, loose matches on Subject: below --
2002-06-07 8:08 Alan Modra
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).