]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-openrisc.c
Support for more than 64k ELF sections.
[thirdparty/binutils-gdb.git] / bfd / elf32-openrisc.c
index 5a7b42ff61d8f7a0edd04fcb1c5043572344b083..5f603660345849bd802361f1600cbf4ecb6373a3 100644 (file)
@@ -516,13 +516,7 @@ openrisc_elf_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;