This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Thread support for HPUX 11 (pa, ia64)
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 21 Aug 2003 21:08:10 -0700
- Subject: Re: Thread support for HPUX 11 (pa, ia64)
- References: <200308220400.h7M400ui001046@speedy.slc.redhat.com>
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