diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-12-17 02:14:30 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2008-12-17 02:14:30 +0000 |
commit | 867ea5fd9af7d6938f8dda898edd469afa712d4f (patch) | |
tree | 989c2fb88667cfab79fe287c107dd74053e06284 /bfd | |
parent | 3b056006d75b8b4607b1a7eb90e3b7e1b7a4b90e (diff) | |
download | gdb-867ea5fd9af7d6938f8dda898edd469afa712d4f.zip gdb-867ea5fd9af7d6938f8dda898edd469afa712d4f.tar.gz gdb-867ea5fd9af7d6938f8dda898edd469afa712d4f.tar.bz2 |
* elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
action for symbols other than bfd_link_hash_indirect.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-cris.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0836a46..40678ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-12-17 Hans-Peter Nilsson <hp@axis.com> + + * elf32-cris.c (elf_cris_copy_indirect_symbol): Return without + action for symbols other than bfd_link_hash_indirect. + 2008-12-15 Hans-Peter Nilsson <hp@axis.com> * elf32-cris.c (elf_cris_copy_indirect_symbol): New function. diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 389798d..2f6b4d8 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); |