This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: [BFD PATCH] File truncation in objcopy for hppa2.0w-hp-hpux11.11 in binutils-2.13.1


> --- 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)


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