This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A shared version of libgcc
Martin V . Loewis <martin@loewis.home.cs.tu-berlin.de> writes:
>
>I'd expect that gcc 3 links all applications and shared libraries with
>libgcc implicitly, just as gcc 2 does. Why would that produce a problem?
SunOS4 will object if libgcc.so is linked to more than one thing in the
set of things to be loaded. It will have decided on a "base address"
when it loads it the 1st time, and will then complain when it sees
it the second time (which is does not supress) that things have
different adddresses.
(This may just mean that shared libgcc.so is not viable on SunOS4,
or you need to supress the implicit link when building shared libs.)
Other OSes which copied Sun's early implementation of dlopen/ld.so
may suffer same way.
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.