diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-30 19:46:24 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-06-01 09:51:59 +0930 |
commit | d18f60c747c220ef8ca118b61e5db5c5cdf8f28b (patch) | |
tree | 8a32ebd4cad179e9964c26c76ad9c60a8c4f733d /bfd | |
parent | f38f7ef965553d5f8a78eba934bb9b192be39c61 (diff) | |
download | fsf-binutils-gdb-d18f60c747c220ef8ca118b61e5db5c5cdf8f28b.zip fsf-binutils-gdb-d18f60c747c220ef8ca118b61e5db5c5cdf8f28b.tar.gz fsf-binutils-gdb-d18f60c747c220ef8ca118b61e5db5c5cdf8f28b.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/cpu-sh.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bfd/cpu-sh.c b/bfd/cpu-sh.c index afea21a..578ff08 100644 --- a/bfd/cpu-sh.c +++ b/bfd/cpu-sh.c @@ -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; } |