tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libgcc



On Wednesday 09 December 2009 09:22:20 Masao Uebayashi wrote:
> > It seems like all shared libraries need to have a dependency against the
> > shared libgcc.  Isn't it required for e.g. exceptions, too?
>
> I don't really understand things, but seems so.  And our shared libraries
> don't get linked against libgcc_s.  From gnu/dist/gcc4/gcc/gcc.c:
>
>    1623 /* XXX NH XXX */
>    1624 #if defined(LINK_EH_SPEC) || 1
>    1625                 "%{shared-libgcc:", shared_name, "} ",
>    1626                 static_name,
>    1627 #ifdef LIBGCC_PICSUFFIX
>    1628                 LIBGCC_PICSUFFIX ,
>    1629 #endif
>    1630 #else
>    1631                 shared_name,
>    1632 #endif
>
> I guess the "|| 1" should be "&& 0" because we don't support --eh-frame-hdr
> yet.

The intent here was to only pull libgcc_s.so in if -shared AND -shared-libgcc 
are specified. That is, not to pull libgcc_s.so if only -shared was 
specified.

http://mail-index.netbsd.org/source-changes/2004/02/15/0014.html

>
> Masao

Nick


Home | Main Index | Thread Index | Old Index