aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-15 09:45:48 +0000
committerAlan Modra <amodra@gmail.com>2001-10-15 09:45:48 +0000
commit1e370bd243d55d65b5a6f5653ac932d0be6c9434 (patch)
tree8a84bccf9df22f28c42ee942b4a38c8c7b77fd93 /bfd/elf32-i386.c
parentbbd7ec4a06eab624965300ea7c0b7de4044811b3 (diff)
downloadgdb-1e370bd243d55d65b5a6f5653ac932d0be6c9434.zip
gdb-1e370bd243d55d65b5a6f5653ac932d0be6c9434.tar.gz
gdb-1e370bd243d55d65b5a6f5653ac932d0be6c9434.tar.bz2
* elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
rather than ind->weakdef. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index f5e6455..fe702b5 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -644,7 +644,7 @@ elf_i386_copy_indirect_symbol (dir, ind)
struct elf_i386_dyn_relocs **pp;
struct elf_i386_dyn_relocs *p;
- if (dir != ind->weakdef)
+ if (ind->root.type == bfd_link_hash_indirect)
abort ();
/* Add reloc counts against the weak sym to the strong sym