23 lines · plain
1// Verify that __guard_flags is set to CF_INSTRUMENTED if CF guard is disabled,2// but the input object was built with CF guard.3 4// REQUIRES: x865 6// RUN: llvm-mc -filetype=obj -triple=x86_64-windows %s -o %t.obj7// RUN: lld-link -out:%t1.dll %t.obj -dll -noentry8// RUN: lld-link -out:%t2.dll %t.obj -dll -noentry -guard:no9 10// RUN: llvm-readobj --hex-dump=.test %t1.dll | FileCheck %s11// RUN: llvm-readobj --hex-dump=.test %t2.dll | FileCheck %s12// CHECK: 0x180001000 0001000013 14 .def @feat.00;15 .scl 3;16 .type 0;17 .endef18 .globl @feat.0019@feat.00 = 0x80020 21 .section .test, "r"22 .long __guard_flags23