This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: PR 1022: binutils failed to build gcc 4.0.1 20050619
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 20 Jun 2005 06:13:18 -0700
- Subject: PATCH: PR 1022: binutils failed to build gcc 4.0.1 20050619
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);