summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-12-17 02:14:30 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-12-17 02:14:30 +0000
commit640934ab23cdb90a8ddc1194e730862fc68d8816 (patch)
treedacaec62c25f14134dc8745f60cf5b7118bacdf9 /bfd/elf32-cris.c
parent21e738cf09cc8a2e983172d04d5f98bd4b17c430 (diff)
downloadbinutils-redhat-640934ab23cdb90a8ddc1194e730862fc68d8816.tar.gz
* elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
action for symbols other than bfd_link_hash_indirect.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 389798db7d..2f6b4d86a1 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -3024,6 +3024,11 @@ elf_cris_copy_indirect_symbol (struct bfd_link_info *info,
edir = (struct elf_cris_link_hash_entry *) dir;
eind = (struct elf_cris_link_hash_entry *) ind;
+ /* Only indirect symbols are replaced; we're not interested in
+ updating any of EIND's fields for other symbols. */
+ if (eind->root.root.type != bfd_link_hash_indirect)
+ return;
+
BFD_ASSERT (edir->pcrel_relocs_copied == NULL);
BFD_ASSERT (edir->gotplt_offset == 0 || eind->gotplt_offset == 0);