[PATCH] D127171: [DWARF] Support 'G' in dwarf parser
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 17:59:56 PDT 2022
fmayer updated this revision to Diff 434660.
fmayer added a comment.
test
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,21 @@
+# RUN: llvm-mc -filetype=obj -triple aarch64-generic-linux -mattr=+mte %s -o %t.o
+# RUN: llvm-objdump -s --dwarf=frames %t.o | FileCheck %s
+
+# CHECK: Augmentation: "zRG"
+
+ .text
+ .globl WithUnwind // -- Begin function WithUnwind
+ .p2align 2
+ .type WithUnwind, at function
+WithUnwind: // @WithUnwind
+ .cfi_startproc
+// %bb.0: // %entry
+ .cfi_mte_tagged_frame
+ ret
+.Lfunc_end0:
+ .size WithUnwind, .Lfunc_end0-WithUnwind
+ .cfi_endproc
+ // -- End function
+ .globl NoUnwind // -- Begin function NoUnwind
+ .p2align 2
+ .type NoUnwind, at function
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.434660.patch
Type: text/x-patch
Size: 1458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220607/439e2282/attachment.bin>
More information about the llvm-commits
mailing list