aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
parentbbd7ec4a06eab624965300ea7c0b7de4044811b3 (diff)
downloadfsf-binutils-gdb-1e370bd243d55d65b5a6f5653ac932d0be6c9434.zip
fsf-binutils-gdb-1e370bd243d55d65b5a6f5653ac932d0be6c9434.tar.gz
fsf-binutils-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')
-rw-r--r--bfd/ChangeLog10
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/elf32-hppa.c2
-rw-r--r--bfd/elf32-i386.c2
-rw-r--r--bfd/elf32-mips.c2
-rw-r--r--bfd/elf64-ppc.c2
-rw-r--r--bfd/elfxx-ia64.c2
7 files changed, 16 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index cd8dfa7..8abfc90 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,4 +1,14 @@
2001-10-15 Alan Modra <amodra@bigpond.net.au>
+
+ * 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.
+
+2001-10-15 Alan Modra <amodra@bigpond.net.au>
H.J. Lu <hjl@gnu.org>
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
diff --git a/bfd/elf.c b/bfd/elf.c
index cd2d169..feffd7c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1193,7 +1193,7 @@ _bfd_elf_link_hash_copy_indirect (dir, ind)
| ELF_LINK_HASH_REF_REGULAR_NONWEAK
| ELF_LINK_NON_GOT_REF));
- if (dir == ind->weakdef)
+ if (ind->root.type != bfd_link_hash_indirect)
return;
/* Copy over the global and procedure linkage table refcount entries.
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 6531575..1417023 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -1149,7 +1149,7 @@ elf32_hppa_copy_indirect_symbol (dir, ind)
struct elf32_hppa_dyn_reloc_entry **pp;
struct elf32_hppa_dyn_reloc_entry *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
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
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 09f7758..0bd473d 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -8085,7 +8085,7 @@ _bfd_mips_elf_copy_indirect_symbol (dir, ind)
_bfd_elf_link_hash_copy_indirect (dir, ind);
- if (dir == ind->weakdef)
+ if (ind->root.type != bfd_link_hash_indirect)
return;
dirmips = (struct mips_elf_link_hash_entry *) dir;
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 1bbd253..59ae522 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -1801,7 +1801,7 @@ ppc64_elf_copy_indirect_symbol (dir, ind)
struct ppc_dyn_relocs **pp;
struct ppc_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
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index e651b5f..5fa95b4 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1524,7 +1524,7 @@ elfNN_ia64_hash_copy_indirect (xdir, xind)
| ELF_LINK_HASH_REF_REGULAR
| ELF_LINK_HASH_REF_REGULAR_NONWEAK));
- if (xdir == xind->weakdef)
+ if (ind->root.root.type != bfd_link_hash_indirect)
return;
/* Copy over the got and plt data. This would have been done