[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 23:16:36 PDT 2025


================
@@ -0,0 +1,21 @@
+// This verifies that hotpatch function attributes are correctly propagated when compiling directly to OBJ.
+//
+// RUN: echo this_gets_hotpatched > %t.patch-functions.txt
+// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-secure-hotpatch-functions-file=%t.patch-functions.txt /Fo%t.obj %s
+// RUN: llvm-readobj --codeview %t.obj | FileCheck %s
----------------
sivadeilra wrote:

Done

https://github.com/llvm/llvm-project/pull/138972


More information about the llvm-commits mailing list