This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Bootstrapping hppa64 (phase 2): HP Linker problem
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: Steve Ellcey <sje at cup dot hp dot com>, law at redhat dot com, binutils at sources dot redhat dot com
- Date: Mon, 15 Jul 2002 13:34:45 +0930
- Subject: Re: Bootstrapping hppa64 (phase 2): HP Linker problem
- References: <200207122018.NAA22993@hpsje.cup.hp.com> <200207130151.g6D1pfrZ019350@hiauly1.hia.nrc.ca>
On Fri, Jul 12, 2002 at 09:51:41PM -0400, John David Anglin wrote:
> Index: elf-hppa.h
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf-hppa.h,v
> retrieving revision 1.57
> diff -u -3 -p -r1.57 elf-hppa.h
> --- elf-hppa.h 16 Jun 2002 15:32:08 -0000 1.57
> +++ elf-hppa.h 12 Jul 2002 17:43:53 -0000
> @@ -811,7 +811,10 @@ elf_hppa_reloc_final_type (abfd, base_ty
> final_type = R_PARISC_PCREL14R;
> break;
> case e_fsel:
> - final_type = R_PARISC_PCREL14F;
> + if (bfd_get_mach (abfd) < 25)
> + final_type = R_PARISC_PCREL14F;
> + else
> + final_type = R_PARISC_PCREL16F;
> break;
> default:
> return R_PARISC_NONE;
This will break elf32-hppa, won't it?
if (bfd_get_arch_info (abfd)->bits_per_address != 32
bfd_get_mach (abfd) < 25)
Or you need to add support for all the 16 bit displacement insns to
elf32-hppa.c:final_link_relocate.
--
Alan Modra
IBM OzLabs - Linux Technology Centre