* symfile.c (list_overlays_command, map_overlay_command)
[deliverable/binutils-gdb.git] / bfd / elfcode.h
index cc55c866d6f40efccdefc2c444310b5425798926..30bda73d86d19c20657beb9d344a63228732b769 100644 (file)
@@ -633,8 +633,9 @@ elf_object_p (bfd *abfd)
       if (i_ehdrp->e_shnum == SHN_UNDEF)
        {
          i_ehdrp->e_shnum = i_shdr.sh_size;
-         if (i_ehdrp->e_shnum != i_shdr.sh_size
-             || i_ehdrp->e_shnum == 0)
+         if (i_ehdrp->e_shnum >= SHN_LORESERVE
+             || i_ehdrp->e_shnum != i_shdr.sh_size
+             || i_ehdrp->e_shnum  == 0)
            goto got_wrong_format_error;
        }
 
This page took 0.04565 seconds and 4 git commands to generate.