Support for a new pacbti unwind opcode.
authorTejas Belagod <tejas.belagod@arm.com>
Tue, 5 Oct 2021 08:43:12 +0000 (08:43 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 29 Oct 2021 10:07:17 +0000 (20:37 +1030)
This patch adds readelf support for decoding the exception table
opcode for restoring the RA_AUTH_CODE pseudo register defined by the
EHABI
(https://github.com/ARM-software/abi-aa/releases/download/2021Q1/ehabi32.pdf
Section 10.3).

* readelf.c (decode_arm_unwind_bytecode): Add support to decode
restoring RA_AUTH_CODE pseudo register.

binutils/readelf.c

index 682eacdef145e42c8d65ff84611fcdff0e465800..1fa7ef4570867f16aafc34caef4b67ebfa091b40 100644 (file)
@@ -9419,6 +9419,8 @@ decode_arm_unwind_bytecode (Filedata *                 filedata,
            printf ("-D%d", first + last);
          printf ("}");
        }
+      else if (op == 0xb4)
+       printf (_("     pop {ra_auth_code}"));
       else if ((op & 0xf8) == 0xb8 || (op & 0xf8) == 0xd0)
        {
          unsigned int count = op & 0x07;