For PPC64/ELFv1: Introduce mst_data_gnu_ifunc
[deliverable/binutils-gdb.git] / bfd / elf32-visium.c
index 3f8d16aa97c6719ba49d0e235ade1d49e57dd5d0..e8f1c4c9e4c27641a019e5fac83815cd91c4224d 100644 (file)
@@ -25,6 +25,7 @@
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/visium.h"
+#include "libiberty.h"
 
 static bfd_reloc_status_type visium_elf_howto_parity_reloc
   (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **);
@@ -475,7 +476,7 @@ visium_info_to_howto_rela (bfd *abfd, arelent *cache_ptr,
       break;
 
     default:
-      if (r_type >= (unsigned int) R_VISIUM_max)
+      if (r_type >= ARRAY_SIZE (visium_elf_howto_table))
        {
          /* xgettext:c-format */
          _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
This page took 0.03454 seconds and 4 git commands to generate.