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

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 11:14:23 PDT 2025


================
@@ -0,0 +1,22 @@
+// This verifies that hotpatch function attributes are correctly propagated when compiling directly to OBJ,
+// and that name mangling works as expected.
+//
+// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-secure-hotpatch-functions-list=?this_gets_hotpatched@@YAHXZ /Fo%t.obj %s
+// RUN: llvm-readobj --codeview %t.obj | FileCheck %s
----------------
efriedma-quic wrote:

I checked to confirm, and I guess clang/test/CodeGen/X86 doesn't have a implicit lit.cfg file, so you probably need `REQUIRES: x86-registered-target` for all the clang tests.  (The llvm/ tests are fine.)

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


More information about the cfe-commits mailing list