Remove BFD_FAIL in cpu-sh.c

The assertions in cpu-sh.c can be triggered by passing bogus values
in disassemble_info.mach.  This doesn't cause any bfd misbehaviour.

	* cpu-sh.c (sh_get_arch_from_bfd_mach): Remove BFD_FAIL.
	(sh_get_arch_up_from_bfd_mach): Likewise.
This commit is contained in:
Alan Modra 2023-05-30 19:46:24 +09:30
parent f38f7ef965
commit d18f60c747

View File

@ -117,9 +117,6 @@ sh_get_arch_from_bfd_mach (unsigned long mach)
else
i++;
/* Machine not found. */
BFD_FAIL();
return SH_ARCH_UNKNOWN_ARCH;
}
@ -139,9 +136,6 @@ sh_get_arch_up_from_bfd_mach (unsigned long mach)
else
i++;
/* Machine not found. */
BFD_FAIL();
return SH_ARCH_UNKNOWN_ARCH;
}