diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-06-04 05:28:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-06-04 05:28:52 +0000 |
commit | bb35ce4c07792e1527b8b3cba1b3c522809fb0c1 (patch) | |
tree | 785b6c5366d7186f3b948076a88f8ea5faac1163 /bfd/elf64-sh64.c | |
parent | c944790b3f623539d016a42dc98a33eb468b8f4d (diff) | |
download | binutils-redhat-bb35ce4c07792e1527b8b3cba1b3c522809fb0c1.tar.gz |
* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
ATTRIBUTE_UNUSED on used params.
* elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
before calling bfd_section_from_elf_index on local syms.
* elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r-- | bfd/elf64-sh64.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c index 91762fad34..fb46bce8d8 100644 --- a/bfd/elf64-sh64.c +++ b/bfd/elf64-sh64.c @@ -2481,11 +2481,7 @@ sh_elf64_gc_mark_hook (abfd, info, rel, h, sym) } else { - if (!(elf_bad_symtab (abfd) - && ELF_ST_BIND (sym->st_info) != STB_LOCAL) - && ! ((sym->st_shndx <= 0 || sym->st_shndx >= SHN_LORESERVE) - && sym->st_shndx != SHN_COMMON)) - return bfd_section_from_elf_index (abfd, sym->st_shndx); + return bfd_section_from_elf_index (abfd, sym->st_shndx); } return NULL; |