From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27571 invoked by alias); 20 May 2003 23:30:12 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 27552 invoked from network); 20 May 2003 23:30:11 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 20 May 2003 23:30:11 -0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.12.9/8.12.9) with ESMTP id h4KNUAgL002949 for ; Tue, 20 May 2003 19:30:10 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.9/8.12.9/Submit) id h4KMk44J001590; Tue, 20 May 2003 18:46:04 -0400 (EDT) Message-Id: <200305202246.h4KMk44J001590@hiauly1.hia.nrc.ca> Subject: Re: [BFD PATCH] File truncation in objcopy for hppa2.0w-hp-hpux11.11 in binutils-2.13.1 To: binutils@sources.redhat.com, sdowning@frame.com Date: Tue, 20 May 2003 23:30:00 -0000 From: "John David Anglin" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00614.txt.bz2 > --- src/bfd/configure.host 22 Jan 2002 00:47:21 -0000 1.9 > +++ src/bfd/configure.host 20 May 2003 19:24:17 -0000 > @@ -23,6 +23,7 @@ > > hppa*64*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX; > host64=true; HOST_64BIT_TYPE=long ;; > +hppa2*-*-hpux*) HDEFINES="-DHOST_HPPAHPUX -DPA_2_0" ;; I'm thinking that we should add the following to bfd/som.h before including a.out.h: #define PA_2_0 After including a.out.h: #ifndef R_SHORT_PCREL_MODE #define R_SHORT_PCREL_MODE 0x3e #endif #ifndef R_LONG_PCREL_MODE #define R_LONG_PCREL_MODE 0x3f #endif I don't think support for these relocs and the other PA_2_0 defines in reloc.h should be host dependent. You should be able to operate on a PA 2.0 file on a PA 1.X host. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)