File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# REQUIRES: x86
2
- # RUN: llvm-mc -triple i686-windows-msvc %s -filetype=obj -o %t.obj
3
- # RUN: lld-link %t.obj %S/Inputs/except_handler3.lib -safeseh -out:%t.exe -opt:noref -entry:main
2
+ # RUN: split-file %s %t.dir
3
+ # RUN: llvm-mc -triple i686-windows-msvc %t.dir/safeseh-md.s -filetype=obj -o %t.obj
4
+ # RUN: llvm-lib -machine:x86 -out:%t.dir/except_handler3.lib -def:%t.dir/except_handler3.def
5
+ # RUN: lld-link %t.obj %t.dir/except_handler3.lib -safeseh -out:%t.exe -opt:noref -entry:main
4
6
# RUN: llvm-readobj --coff-load-config %t.exe | FileCheck %s
5
7
6
8
# CHECK: SEHTable [
7
9
# CHECK-NEXT: 0x
8
10
# CHECK-NEXT: ]
9
11
12
+ #--- safeseh-md.s
10
13
.def @feat.00 ;
11
14
.scl 3 ;
12
15
.type 0 ;
@@ -33,3 +36,8 @@ __load_config_used:
33
36
.fill 60 , 1 , 0
34
37
.long ___safe_se_handler_table
35
38
.long ___safe_se_handler_count
39
+
40
+ #--- except_handler3.def
41
+ NAME except_handler3.dll
42
+ EXPORTS
43
+ _except_handler3
You can’t perform that action at this time.
0 commit comments