This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix ld-elfvers/vers21.c for gcc 3.x
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 3 Oct 2002 23:39:48 -0700
- Subject: PATCH: Fix ld-elfvers/vers21.c for gcc 3.x
- References: <20021004094807.Q25369@bubble.sa.bigpond.net.au>
On Fri, Oct 04, 2002 at 09:48:07AM +0930, Alan Modra wrote:
> Hi HJ,
> Have you tried compiling binutils with recent cvs gcc? I get
>
> FAIL: vers21
>
> on --target=i686-linux --disable-nls --enable-64-bit-bfd --enable-targets=all
>
> I'm wondering if you see the same, which would point to a gcc
> problem, or not, which would point to a problem with my gcc bootstrap
> compiler (2.95.3).
>
I will check in this patch shortly.
H.J.
---
2002-10-03 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc
3.x.
--- ld-elfvers/vers21.c.bss Mon Jul 15 17:26:14 2002
+++ ld-elfvers/vers21.c Thu Oct 3 23:35:10 2002
@@ -27,6 +27,6 @@ _old_foo ()
return foo ();
}
-int _old_foobar = 0;
+int _old_foobar = -1;
int foobar = 1;