diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-04 05:28:52 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-04 05:28:52 +0000 |
commit | 8d2c33be032d817bfce67cb975bb25fdc28f1c5d (patch) | |
tree | 70192b582b1f3579c343629f30f331d36020c2a1 /bfd/elf32-vax.c | |
parent | 5b0e55b627d80fe3220036737d639cbba71a3e1e (diff) | |
download | gdb-8d2c33be032d817bfce67cb975bb25fdc28f1c5d.zip gdb-8d2c33be032d817bfce67cb975bb25fdc28f1c5d.tar.gz gdb-8d2c33be032d817bfce67cb975bb25fdc28f1c5d.tar.bz2 |
* 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/elf32-vax.c')
-rw-r--r-- | bfd/elf32-vax.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c index aecc6bc..8901188 100644 --- a/bfd/elf32-vax.c +++ b/bfd/elf32-vax.c @@ -887,13 +887,7 @@ elf_vax_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; |