correct ft32 reloc range test
[deliverable/binutils-gdb.git] / bfd / elf32-m68k.c
index 95db3a097d940c52a94386036d1bb89d902a7897..8680504cee6b2ccaa7ad6e034fba078296643c0b 100644 (file)
@@ -341,7 +341,7 @@ static reloc_howto_type howto_table[] =
         FALSE),                /* pcrel_offset */
 };
 
-static void
+static bfd_boolean
 rtype_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
 {
   unsigned int indx = ELF32_R_TYPE (dst->r_info);
@@ -351,9 +351,11 @@ rtype_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst)
       /* xgettext:c-format */
       _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
                          abfd, indx);
-      indx = R_68K_NONE;
+      bfd_set_error (bfd_error_bad_value);
+      return FALSE;
     }
   cache_ptr->howto = &howto_table[indx];
+  return TRUE;
 }
 
 #define elf_info_to_howto rtype_to_howto
@@ -1656,14 +1658,14 @@ elf_m68k_add_entry_to_got (struct elf_m68k_got *got,
       if (got->n_slots[R_8] > ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info))
        /* xgettext:c-format */
        _bfd_error_handler (_("%pB: GOT overflow: "
-                             "Number of relocations with 8-bit "
+                             "number of relocations with 8-bit "
                              "offset > %d"),
                            abfd,
                            ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info));
       else
        /* xgettext:c-format */
        _bfd_error_handler (_("%pB: GOT overflow: "
-                             "Number of relocations with 8- or 16-bit "
+                             "number of relocations with 8- or 16-bit "
                              "offset > %d"),
                            abfd,
                            ELF_M68K_R_8_16_MAX_N_SLOTS_IN_GOT (info));
This page took 0.024227 seconds and 4 git commands to generate.