This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: shared libg2c?
- To: Michael Matz <matzmich at cs dot tu-berlin dot de>
- Subject: Re: shared libg2c?
- From: ebiederm at xmission dot com (Eric W. Biederman)
- Date: 01 Nov 2000 11:08:00 -0700
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>, nbecker at fred dot net, gcc at gcc dot gnu dot org
- References: <Pine.GSO.4.21.0011011433360.28519-100000@platon>
Michael Matz <matzmich@cs.tu-berlin.de> writes:
> Hi,
>
> On Tue, 31 Oct 2000, Toon Moene wrote:
> > > I don't understand. Could you please elaborate? Specifically, why is
> > > it useful to have a non-reentrant archive lib, but it's not useful if
> > > it's compiled as a shared lib?
> >
> > Because it is not useful to have a non-reentrant shared lib, period :-)
>
> Huh? Shared lib only means, that pages from the (immutable) .text section
> and probably the .rodata section are shared between processes. As only
> immutable pages can be shared, there are by definition no reentrancy
> issues. And even if a page ever gets modified it becomes unshared.
Unless you happen to be think windows dll's.
I suspect it would be safe to still use a static library
in the cygwin port....
Eric