Skip to content

Commit 955be52

Browse files
authored
[LLD][NFC] Don't use x64 import library for x86 target in safeseh-md tests. (#102736)
Use llvm-lib to generate input library instead of a binary blob.
1 parent 59f7a80 commit 955be52

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
-1.33 KB
Binary file not shown.

lld/test/COFF/safeseh-md.s

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# 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
46
# RUN: llvm-readobj --coff-load-config %t.exe | FileCheck %s
57

68
# CHECK: SEHTable [
79
# CHECK-NEXT: 0x
810
# CHECK-NEXT: ]
911

12+
#--- safeseh-md.s
1013
.def @feat.00;
1114
.scl 3;
1215
.type 0;
@@ -33,3 +36,8 @@ __load_config_used:
3336
.fill 60, 1, 0
3437
.long ___safe_se_handler_table
3538
.long ___safe_se_handler_count
39+
40+
#--- except_handler3.def
41+
NAME except_handler3.dll
42+
EXPORTS
43+
_except_handler3

0 commit comments

Comments
 (0)