__CTOR_LIST vs glc

Jeffrey A Law law@cygnus.com
Fri Jun 11 03:08:00 GMT 1999

Several platforms have had trouble with this cleanup change:

1999-03-24  Jim Blandy  <jimb@zwingli.cygnus.com>

        * libgcc2.c (__CTOR_LIST__, __DTOR_LIST__): Initialize on all

Initially we thought the problems were fairly isolated and we tweaked the
target to avoid losing.  But the more testing we do, the more problems we

The common factor is any target which is using gnu-ld and the old magic
stabs for ctor/dtor collection is losing.  We're mostly talking about
older systems (pre ELF).

This patch should fix the problem for the remaining old systems.  I still
think we are best off losing the magic stabs for ctor/dtor collection, but
I'm not up for rooting it out of all those dusty ports at the moment.

More information about the Gcc-patches mailing list