diff options
Diffstat (limited to 'bfd/elf32-avr.c')
-rw-r--r-- | bfd/elf32-avr.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c index 3efd24886b3..61f28e6d4e2 100644 --- a/bfd/elf32-avr.c +++ b/bfd/elf32-avr.c @@ -427,14 +427,9 @@ elf32_avr_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; } |