aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 4cad55d..f6e14fa 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -2524,7 +2524,7 @@ section_from_elf_index (abfd, index)
if (index == SHN_COMMON)
return bfd_com_section_ptr;
- if (index > elf_elfheader (abfd)->e_shnum)
+ if (index >= elf_elfheader (abfd)->e_shnum)
return NULL;
{