aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorTejas Belagod <tejas.belagod@arm.com>2021-10-05 08:43:12 +0000
committerAlan Modra <amodra@gmail.com>2021-10-29 20:37:17 +1030
commit09854a8870e63bd0d976d4d0dd7bd6b9b91348b1 (patch)
tree7fc504d40afc49f69ce3d4d696b749ee7c344e27 /binutils/readelf.c
parentdd6b67bec88e5517f1840b0df9cef5694d74104e (diff)
downloadbinutils-09854a8870e63bd0d976d4d0dd7bd6b9b91348b1.zip
binutils-09854a8870e63bd0d976d4d0dd7bd6b9b91348b1.tar.gz
binutils-09854a8870e63bd0d976d4d0dd7bd6b9b91348b1.tar.bz2
Support for a new pacbti unwind opcode.
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 682eacd..1fa7ef4 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;