[PATCH] D127171: [DWARF] Support 'G' in dwarf parser
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 14:28:02 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa2695c3fe1b7: [DWARF] Support 'G' in dwarf parser (authored by fmayer).
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,18 @@
+# REQUIRES: aarch64-registered-target
+
+# RUN: llvm-mc -filetype=obj -triple aarch64-elfs -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.435336.patch
Type: text/x-patch
Size: 1167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220608/40745fcc/attachment.bin>
More information about the llvm-commits
mailing list