[readelf] arm: Support for new pacbti unwind opcode 0xb5.
authorSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Mon, 14 Nov 2022 15:11:49 +0000 (15:11 +0000)
committerSrinath Parvathaneni <srinath.parvathaneni@arm.com>
Mon, 14 Nov 2022 15:12:21 +0000 (15:12 +0000)
This patch adds readelf support for decoding the exception
table opcode "0xb5", which indicates to use effective vsp
as modifier for PAC validation as defined by EHABI
(https://github.com/ARM-software/abi-aa/releases/download/2022Q3/ehabi32.pdf
Section 10.3).

binutils/ChangeLog:

2022-11-07  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>

        * readelf.c (decode_arm_unwind_bytecode): Add entry to decode opcode 0xb5.

binutils/readelf.c

index 4d8e540b39b1a7089bbb31026ddbc597e3621731..c8323539a21f3d3ba757e364c06c3dc0e6e7fade 100644 (file)
@@ -9916,6 +9916,8 @@ decode_arm_unwind_bytecode (Filedata *                 filedata,
        }
       else if (op == 0xb4)
        printf (_("     pop {ra_auth_code}"));
+      else if (op == 0xb5)
+       printf (_("     vsp as modifier for PAC validation"));
       else if ((op & 0xf8) == 0xb8 || (op & 0xf8) == 0xd0)
        {
          unsigned int count = op & 0x07;