aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ft32.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-03-01 08:21:11 +1030
committerAlan Modra <amodra@gmail.com>2018-03-01 09:12:50 +1030
commit5224fa039966557e869338d2591e7945cdcecb74 (patch)
tree5d47cc2a7b458d14c157d8ae529d52943a3ea9c4 /bfd/elf32-ft32.c
parent815615463b1171cbff7c5e54f62fc708cc1bbc99 (diff)
downloadgdb-5224fa039966557e869338d2591e7945cdcecb74.zip
gdb-5224fa039966557e869338d2591e7945cdcecb74.tar.gz
gdb-5224fa039966557e869338d2591e7945cdcecb74.tar.bz2
correct ft32 reloc range test
* elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
Diffstat (limited to 'bfd/elf32-ft32.c')
-rw-r--r--bfd/elf32-ft32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c
index b981a34..7c4e1ae 100644
--- a/bfd/elf32-ft32.c
+++ b/bfd/elf32-ft32.c
@@ -300,7 +300,7 @@ ft32_info_to_howto_rela (bfd *abfd,
unsigned int r_type;
r_type = ELF32_R_TYPE (dst->r_info);
- if (r_type < (unsigned int) R_FT32_max)
+ if (r_type >= (unsigned int) R_FT32_max)
{
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),