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]

Re: shared libg2c?


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

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