This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: shared libg2c?
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Subject: Re: shared libg2c?
- From: Michael Matz <matzmich at cs dot tu-berlin dot de>
- Date: Wed, 1 Nov 2000 14:40:32 +0100 (MET)
- cc: nbecker at fred dot net, gcc at gcc dot gnu dot org
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.
Ciao,
Michael.