diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-06-20 13:06:27 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-06-20 13:06:27 +0000 |
commit | f7c5057a527bc1603f36dee7132765c9ecae3d52 (patch) | |
tree | 78eea838a4e798a8a8165c15b7c6fe1161525c4e /bfd/elf32-hppa.c | |
parent | 71cb94647fa5b68adc1cec4babaa9d2d5148d9c4 (diff) | |
download | gdb-f7c5057a527bc1603f36dee7132765c9ecae3d52.zip gdb-f7c5057a527bc1603f36dee7132765c9ecae3d52.tar.gz gdb-f7c5057a527bc1603f36dee7132765c9ecae3d52.tar.bz2 |
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
PR 1022
* elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
symbol.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r-- | bfd/elf32-hppa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 12f1b04..cdae72a 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -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); |