This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread support for HPUX 11 (pa, ia64)


law@redhat.com writes:

> In message <87fzjvwyq2.fsf@codesourcery.com>, "Zack Weinberg" writes:
>  >These patches make --enable-threads work with HPUX 11.
...
>  >All versions of HPUX, whether for the PA or the IA64, have an
>  >ingrained bug in the linker and dynamic loader, which makes weak
>  >external references useless.  This makes it necessary to set
>  >GTHREAD_USE_WEAK to 0 in both the gcc and libstdc++ configuration, or
>  >you get link errors for all programs using libstdc++.  This was
>  >already being done for pa32 hpux (SOM-based); the patch enables it for
>  >pa64 and ia64 (allegedly ELF-based).
...
> My only comment would be that you may want to go ahead and use 
> weak external references when we're using gnu-ld -- at least if it's
> reasonable to do so from an implementation standpoint.  We have gnu-ld
> on the PA64 platform.

I did not know GNU ld supported PA64.  However, we need to disable
weak external references whether or not it is in use, because the HPUX
dynamic loader exhibits the same bug.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]