summaryrefslogtreecommitdiff
path: root/lld/test
diff options
context:
space:
mode:
authorPhoebe Wang <phoebe.wang@intel.com>2023-05-16 23:10:51 +0800
committerPhoebe Wang <phoebe.wang@intel.com>2023-05-16 23:12:03 +0800
commit360d0cd0a238b9b069a83e7aaff534e5712dbc90 (patch)
tree5c7b686e0f1ea5434046b99674ed2fc2041367d7 /lld/test
parent788e6ff4e5e6414c6707e91e95829f1d7c76b1aa (diff)
downloadllvm-360d0cd0a238b9b069a83e7aaff534e5712dbc90.tar.gz
[LLD] Do not assume /guard:cf always set together with /guard:ehcont
MS link accepts *.obj with ehcont bit set only. LLD should match this behavoir too. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D150508
Diffstat (limited to 'lld/test')
-rw-r--r--lld/test/COFF/guard-ehcont.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/COFF/guard-ehcont.s b/lld/test/COFF/guard-ehcont.s
index 9b80a6ac4286..f040a62f7e3d 100644
--- a/lld/test/COFF/guard-ehcont.s
+++ b/lld/test/COFF/guard-ehcont.s
@@ -10,7 +10,7 @@
# CHECK: GuardCFCheckFunction: 0x0
# CHECK: GuardCFCheckDispatch: 0x0
# CHECK: GuardCFFunctionTable: 0x14000{{.*}}
-# CHECK: GuardCFFunctionCount: 1
+# CHECK: GuardCFFunctionCount: 4
# CHECK: GuardFlags [ (0x400500)
# CHECK: CF_FUNCTION_TABLE_PRESENT (0x400)
# CHECK: CF_INSTRUMENTED (0x100)
@@ -225,4 +225,4 @@ _load_config_used:
.fill 72, 1, 0
.quad __guard_eh_cont_table
.quad __guard_eh_cont_count
- .fill 32, 1, 0 \ No newline at end of file
+ .fill 32, 1, 0