elf32-nds32: Don't define fls if it is provided by the system
[deliverable/binutils-gdb.git] / bfd / elf32-iq2000.c
index d1ce3c8b4cc74c3047edaa800370e58c26b37f1f..e616766ad461ac2fd8f684806679d7dfa1ecb8d9 100644 (file)
@@ -22,6 +22,7 @@
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/iq2000.h"
+#include "libiberty.h"
 
 /* Forward declarations.  */
 
@@ -435,7 +436,7 @@ iq2000_info_to_howto_rela (bfd * abfd ATTRIBUTE_UNUSED,
       break;
 
     default:
-      if (r_type >= (unsigned int) R_IQ2000_max)
+      if (r_type >= ARRAY_SIZE (iq2000_elf_howto_table))
        {
          /* xgettext:c-format */
          _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
This page took 0.024206 seconds and 4 git commands to generate.