This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: duplicate -lgcc --as-needed -lgcc_s --no-as-needed


On Thu, 2 Jun 2005, Jakub Jelinek wrote:

> 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?

Is it necessary to have it before -lc and after?

> > 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

so this construct is used only to get EH stuff from libgcc_s.so? Is there 
stuff in libgcc.a that is not present in libgcc_s.so too? If not, what 
about moving this around (or remove -lgcc) and get everything from 
libgcc_s, if we already depend on it?

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]