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: Bootstrapping hppa64 (phase 2): HP Linker problem


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


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