projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38f7ef
)
Remove BFD_FAIL in cpu-sh.c
author
Alan Modra
<amodra@gmail.com>
Tue, 30 May 2023 10:16:24 +0000
(19:46 +0930)
committer
Alan Modra
<amodra@gmail.com>
Thu, 1 Jun 2023 00:21:59 +0000
(09:51 +0930)
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.
bfd/cpu-sh.c
patch
|
blob
|
history
diff --git
a/bfd/cpu-sh.c
b/bfd/cpu-sh.c
index afea21a8dac7db44f06119bcc31bacc25a088832..578ff086c3fffc965905d8e817a29ae0347b6eec 100644
(file)
--- 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;
}