Skip to contentSkip to conversation

binutils: Fix aarch64 disassembly abort

PATCH New Mark Hatle 1 participant 1 message May 27, 2024

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH v2 1/1 binutils: Fix aarch64 disassembly abort

From: Mark Hatle <[email protected]>

Code backported from binutils development tree.

aarch64: Remove asserts from operand qualifier decoders [PR31595]

Given that the disassembler should never abort when decoding (potentially random) data, assertion statements in the `get_*reg_qualifier_from_value' function family prove problematic.

...

---
 meta/recipes-devtools/binutils/binutils-2.42.inc   |   1 +
 ...ove-asserts-from-operand-qualifier-decode.patch | 382 +++++++++++++++++++++
 2 files changed, 383 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0016-aarch64-Remove-asserts-from-operand-qualifier-decode.patch
meta/recipes-devtools/binutils/binutils-2.42.inc +1 -0
index 3b6f47d..d2f4956 100644
@@ -36,5 +36,6 @@ SRC_URI = "\
      file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
      file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
      file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
+     file://0016-aarch64-Remove-asserts-from-operand-qualifier-decode.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0016-aarch64-Remove-asserts-from-operand-qualifier-decode.patch new file +382 -0

382 lines not on this page · raw message

Signature · 1 line
1.8.3.1