This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: duplicate -lgcc --as-needed -lgcc_s --no-as-needed
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "Peter S. Mazinger" <ps dot m at gmx dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 2 Jun 2005 14:26:30 +0200
- Subject: Re: duplicate -lgcc --as-needed -lgcc_s --no-as-needed
- References: <Pine.LNX.4.44.0506021350590.4678-100000@lnx.bridge.intra>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jun 02, 2005 at 01:59:46PM +0200, Peter S. Mazinger wrote:
> Hello!
>
> the sequence used for linking on x86 (but most archs will have it too)
> -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
> --no-as-needed
> contains duplicate. Is this really necessary?
>
> Will the '--as-needed -lgcc_s --no-as-needed' ever apply?
> The missing symbols will be found in -lgcc.
That's not true. The EH stuff is not in -lgcc, so if -lc needs it,
it wouldn't be found.
Jakub