diff options
Diffstat (limited to 'bfd/elf32-mt.c')
-rw-r--r-- | bfd/elf32-mt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf32-mt.c b/bfd/elf32-mt.c index 6df1521..f6e45a7 100644 --- a/bfd/elf32-mt.c +++ b/bfd/elf32-mt.c @@ -236,6 +236,11 @@ mt_info_to_howto_rela unsigned int r_type; r_type = ELF32_R_TYPE (dst->r_info); + if (r_type >= (unsigned int) R_MT_max) + { + _bfd_error_handler (_("%A: invalid MT reloc number: %d"), abfd, r_type); + r_type = 0; + } cache_ptr->howto = & mt_elf_howto_table [r_type]; } |