[PATCH] D127171: [DWARF] Support 'G' in dwarf parser

Florian Mayer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 13:57:58 PDT 2022


fmayer updated this revision to Diff 434942.
fmayer added a comment.

address comment


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127171/new/

https://reviews.llvm.org/D127171

Files:
  llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  llvm/test/DebugInfo/AArch64/stack-tagging-cfi.s


Index: llvm/test/DebugInfo/AArch64/stack-tagging-cfi.s
===================================================================
--- /dev/null
+++ llvm/test/DebugInfo/AArch64/stack-tagging-cfi.s
@@ -0,0 +1,16 @@
+# RUN: llvm-mc -filetype=obj -triple aarch64 -mattr=+mte %s -o %t.o
+# RUN: llvm-dwarfdump --eh-frame %t.o | FileCheck %s
+
+# CHECK: Augmentation:          "zRG"
+
+	.text
+	.globl	WithUnwind
+	.p2align	2
+	.type	WithUnwind, at function
+WithUnwind:
+	.cfi_startproc
+	.cfi_mte_tagged_frame
+	ret
+.Lfunc_end0:
+	.size	WithUnwind, .Lfunc_end0-WithUnwind
+	.cfi_endproc
Index: llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
===================================================================
--- llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
+++ llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
@@ -1138,6 +1138,10 @@
             // B-Key is used for signing functions associated with this
             // augmentation string
             break;
+            // This stack frame contains MTE tagged data, so needs to be
+            // untagged on unwind.
+          case 'G':
+            break;
           }
         }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127171.434942.patch
Type: text/x-patch
Size: 1121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220607/8d6ded26/attachment.bin>


More information about the llvm-commits mailing list