This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [BFD PATCH] File truncation in objcopy for hppa2.0w-hp-hpux11.11 in binutils-2.13.1
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: binutils at sources dot redhat dot com, sdowning at frame dot com
- Date: Wed, 21 May 2003 14:05:42 -0400 (EDT)
- Subject: Re: [BFD PATCH] File truncation in objcopy for hppa2.0w-hp-hpux11.11 in binutils-2.13.1
> /* And these first appeared in hpux10. */
> #ifndef R_SHORT_PCREL_MODE
> #define NO_PCREL_MODES
> #define R_SHORT_PCREL_MODE 0x3e
> #endif
>
> #ifndef R_LONG_PCREL_MODE
> #define R_LONG_PCREL_MODE 0x3f
> #endif
Ooops, we don't need to define these twice. Just define define
PA_2_0 in som.h before the a.out.h include, and see if that fixes your
problem.
The NO_PCREL_MODES define is a hack. The generation of these two
relocs should depend on code level. At the moment, it's not entirely
clear whether HP ld on a PA 1.X machine will link PA 2.0 code. However,
it's possible that it was built with PA_2_0 defined and will support
the relocs.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)