This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Location of constructor and destructor stabs
- To: egcs-bugs at cygnus dot com
- Subject: Location of constructor and destructor stabs
- From: "Charles M. Hannum" <root at ihack dot net>
- Date: Tue, 24 Nov 1998 13:51:41 -0500
I'm not sure whether this is a bug or not...
I noticed an odd difference between how GCC 2.7 and egcs output linker
set symbols for global constructors and destructors. This is only
tested on i386--netbsd, but presumably affects other a.out platforms
as well.
In GCC 2.7, the set symbol is always output just after the end of the
function. egcs has the same behaviour with optimize<3, but with
optimize>=3 it outputs the set symbol before the function definition.
I noticed this because our version of gas handled forward references
in set symbols rather poorly. I've fixed the gas bug, but I thought
I'd mention it here in case the egcs behaviour is considered broken.