]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-spu.c
* elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype.
[thirdparty/binutils-gdb.git] / bfd / elf32-spu.c
index 99b1b610b0ddd283647bb31ee9bcae22a42d4820..93fe0a4f94e1c2a436381c4f96770743b1162b70 100644 (file)
@@ -409,14 +409,7 @@ get_sym_h (struct elf_link_hash_entry **hp,
        *symp = sym;
 
       if (symsecp != NULL)
-       {
-         asection *symsec = NULL;
-         if ((sym->st_shndx != SHN_UNDEF
-              && sym->st_shndx < SHN_LORESERVE)
-             || sym->st_shndx > SHN_HIRESERVE)
-           symsec = bfd_section_from_elf_index (ibfd, sym->st_shndx);
-         *symsecp = symsec;
-       }
+       *symsecp = bfd_section_from_elf_index (ibfd, sym->st_shndx);
     }
 
   return TRUE;