AIX & shared libstdc++

Andrey Slepuhin pooh@msu.ru
Mon Oct 13 05:05:00 GMT 1997


Ian Lance Taylor wrote:
> 
>    Date: Thu, 09 Oct 1997 20:01:20 +0400
>    From: Andrey Slepuhin <pooh@msu.ru>
> 
>    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.



More information about the Gcc mailing list