This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: binutils 2.9.5.0.5 still trigger the last bug - static libstdc++ required
- To: hjl@lucon.org
- Subject: Re: binutils 2.9.5.0.5 still trigger the last bug - static libstdc++ required
- From: Ian Lance Taylor <ian@zembu.com>
- Date: 7 Aug 1999 21:21:25 -0400
- CC: jj@sunsite.ms.mff.cuni.cz, binutils@sourceware.cygnus.com
- References: <19990808011742.C8DB757B9@ocean.lucon.org>
Date: Sat, 7 Aug 1999 18:17:42 -0700 (PDT)
From: hjl@lucon.org (H.J. Lu)
> The bug has been in binutils for a while. Ian, Jakub, with "make check"
> in ld, I got
>
> FAIL: shared (non PIC)
> FAIL: shared (non PIC, load offset)
> FAIL: shared (PIC main, non PIC so)
>
> This suggests a bug in handling relocations when generating shared
> libraries.
>
> To me it makes perfect sense to include libstdc++.a in a shared
> object. Anyhow, it seems silly to patch g++ merely because there is a
> bug in ld. We should just fix the bug in ld. A bug like this can't
> be hard to fix, especially since the GNU linker used to pass those
> tests on Solaris.
binutils 2.9.1.0.25, which is basically binutils 2.9.1, failed those
tests. I am no expert on Sparc. I don't know how it got broken. I
will give it a try when I find time.
When I used to run tests on Solaris those tests passed (well, the load
offset test did not exist at that time, and I'm not concerned if it
doesn't pass).
Ian