From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Slepuhin To: Ian Lance Taylor Cc: egcs@cygnus.com Subject: Re: AIX & shared libstdc++ Date: Mon, 13 Oct 1997 05:05:00 -0000 Message-id: <34420E41.1AEBEF3@msu.ru> References: <199710091815.OAA20044@subrogation.cygnus.com> X-SW-Source: 1997-10/msg00493.html Ian Lance Taylor wrote: > > Date: Thu, 09 Oct 1997 20:01:20 +0400 > From: Andrey Slepuhin > > 3) Even the simple test program failed to run with message about exec > format error due to bad text alignment. > It seems to me that problem is not with egcs but with gnu ld which > generates > invalid executables. Any help is appreciated. > > You're right; the GNU linker doesn't work on AIX 4.2. It's possible > that the appended patch to ld/emultempl/aix.em will fix the immediate > problem. There may be other problems. Thanks for the help - it seems that your patch works fine. At least I just successfully build omniORB2 with egcs-971008 configured with --enable-shared --with-gnu-ld. The only problem was with multiple defined symbol _mutex_global_np in pthread.h (native linker ignores multiple defined symbols; this symbol is not defined as extern - this looks like IBM bug). Andrey.