Global constructor problem on mips-sgi-irix5.2

Jim Wilson
Tue Apr 7 18:45:00 GMT 1998

	It looks like constructors for global objects aren't called on my
	mips-sgi-irix5.2 box when using egcs-1.0.2.

Yes, there is something wrong, but it is not clear what is wrong.

	GNU assembler version 980320 (mips-sgi-irix5.2), using BFD version

I see that you are using a funny version of binutils.  I think that is one
of H.J. Lu's linux binutils releases.  Perhaps it doesn't work right under
Irix 5.  It was probably never tested there.  Try using binutils-2.8.1 instead.

I am guessing that there might be some confusion over whether pointers are
32 bit or 64 bits in the ctor/dtor handling code in binutils.  If binutils
puts a 64 bit value in the ctor list, and then gcc's ctor code read a 32 bit
value, it would see a zero and think that there were no ctors.  If this is
the problem, then you will have to rebuild all of egcs with a different


More information about the Gcc-bugs mailing list