stdio synching and startup code (was Re: segfaults after loading shared libstdc++)

Phil Edwards pedwards@disaster.jaj.com
Tue Jan 16 01:18:00 GMT 2001


On Sun, Jan 14, 2001 at 07:50:29PM +0000, Jason Merrill wrote:
> 
> And, BTW, of init_priority--which we might want to use on platforms that
> support it, to avoid the overhead of imposing static constructors on all
> object files that use iostream.

I was looking at trying to do this, but kept running up against problems when
the C++ stuff was initialized before the underlying C stuff.  In addition
to putting the library code somewhere in that magicial 0-100 priority range,
we'd have to find some way of ensuring that the C library always goes first.

The first would be trivial.  The second... eek.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


More information about the Libstdc++ mailing list