[lld] [llvm] [LLD][COFF] Add more variety of CET and hotpatch flags (PR #150761)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 01:09:45 PDT 2025


================
@@ -0,0 +1,15 @@
+RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
+RUN: lld-link /out:%t.exe /entry:main /cetcompatstrict %t.obj
+RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
+
+CHECK:  DebugEntry {
+CHECK:    Characteristics: 0x0
+CHECK:    Type: ExtendedDLLCharacteristics (0x14)
+CHECK:    ExtendedCharacteristics [ (0x2)
+CHECK:      IMAGE_DLL_CHARACTERISTICS_EX_CET_COMPAT_STRICT_MODE (0x2)
----------------
mstorsjo wrote:

Aren't these individual standalone tests mostly duplicating what you're testing in `options.test` (or vice versa)? I think we'd rather avoid unnecessary test duplication (as it all does add up in test execution time).

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


More information about the llvm-commits mailing list