From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Wilson To: frichard@bbn.com Cc: egcs@cygnus.com, egcs-bugs@cygnus.com Subject: Re: Global constructor problem on mips-sgi-irix5.2 Date: Wed, 08 Apr 1998 02:13:00 -0000 Message-id: <199804080004.RAA26661@rtl.cygnus.com> References: <199804061613.MAA00575@bbn.com> X-SW-Source: 1998-04/msg00301.html 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 2.8.1.0.24 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 binutils. Jim