PATCH: PR 1022: binutils failed to build gcc 4.0.1 20050619

H. J. Lu hjl@lucon.org
Mon Jun 20 13:13:00 GMT 2005
I checked in the following patch to fix PR 1022.


H.J.
----
2005-06-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR 1022
	* elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
	symbol.

--- bfd/elf32-hppa.c.got	2005-05-19 06:51:55.000000000 -0700
+++ bfd/elf32-hppa.c	2005-06-20 06:01:45.000000000 -0700
@@ -1085,8 +1085,13 @@ elf32_hppa_check_relocs (bfd *abfd,
       if (r_symndx < symtab_hdr->sh_info)
 	h = NULL;
       else
-	h = ((struct elf32_hppa_link_hash_entry *)
+	{
+	  h = ((struct elf32_hppa_link_hash_entry *)
 	     sym_hashes[r_symndx - symtab_hdr->sh_info]);
+	  while (h->elf.root.type == bfd_link_hash_indirect
+		 || h->elf.root.type == bfd_link_hash_warning)
+	    h = (struct elf32_hppa_link_hash_entry *) h->elf.root.u.i.link;
+	}
 
       r_type = ELF32_R_TYPE (rel->r_info);
 



More information about the Binutils mailing list