From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31447 invoked by alias); 11 Apr 2002 17:14:55 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31439 invoked from network); 11 Apr 2002 17:14:53 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 11 Apr 2002 17:14:53 -0000 Received: from hiauly1.hia.nrc.ca (localhost [127.0.0.1]) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id g3BHEgFN000644; Thu, 11 Apr 2002 13:14:42 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) id g3BHEf2h000643; Thu, 11 Apr 2002 13:14:41 -0400 (EDT) Message-Id: <200204111714.g3BHEf2h000643@hiauly1.hia.nrc.ca> Subject: Re: gcc-64 on HP-UX 11.00 To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Thu, 11 Apr 2002 10:25:00 -0000 From: "John David Anglin" Cc: h.m.brand@hccnet.nl, gcc@gcc.gnu.org, law@redhat.com In-Reply-To: from "John David Anglin" at Apr 11, 2002 11:18:49 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00452.txt.bz2 > In message <200204111518.g3BFIoZE029965@hiauly1.hia.nrc.ca>, "John David Anglin > " writes: > > Gcc doesn't generate inline plabels on the PA. It would save one insn > > and one data location if we could use these selectors. However, there > > have been problems with them in 32bit land for years. I think the > > current assembler can handle them but the SOM linker still doesn't > > handle them. > Actually the SOM linker can handle them, but there are corner cases with > very large executables where it's impossible for the SOM linker to properly > fixup an inline plabel. For that reason we stopped using them based on > a recommendation from HP. Interesting. The problem might be in the dynamic loader. In the research I did for this patch , I tried using inline plabels with both the HP and GNU assembler/linkers since this would have made the definition of ASM_OUTPUT_MI_THUNK considerably simpler. The HP assembler/linker compiled my little test PIC program with inline plabels. However, when I executed it, the address loaded was not the address of a function descriptor for the thunk target function. GAS didn't like the LTP/RTP selectors at all. Thus, I was forced to create a plabel in the data section. It was a bit tricky to do this in a manner that was compatible with both hpux and linux. Dave -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605)