[clang] [llvm] [MTE] Add an attribute to opt-in memory tagging of global variables while using fsanitize=memtag-globals (#166380) (PR #168535)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 19:15:12 PST 2025
================
@@ -28,6 +29,11 @@ void func() {
// This DOES NOT mean we are instrumenting the section global,
// but we are ignoring it in AsmPrinter rather than in clang.
// CHECK: @{{.*}}section_global{{.*}} ={{.*}} sanitize_memtag
+
+// In order to opt-in memory tagging in globals in sections,
----------------
fmayer wrote:
maybe also add to memtag-globals-asm.cpp?
https://github.com/llvm/llvm-project/pull/168535
More information about the llvm-commits
mailing list