[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / safeseh-md.s
blobfda09fda64ede4f1dbd9c47b096db1cfcbc2d3a0
1 # REQUIRES: x86
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
6 # RUN: llvm-readobj --coff-load-config %t.exe | FileCheck %s
8 # CHECK: SEHTable [
9 # CHECK-NEXT: 0x
10 # CHECK-NEXT: ]
12 #--- safeseh-md.s
13 .def @feat.00;
14 .scl 3;
15 .type 0;
16 .endef
17 .globl @feat.00
18 @feat.00 = 1
20 .def _main;
21 .scl 2;
22 .type 32;
23 .endef
24 .section .text,"xr",one_only,_main
25 .globl _main
26 _main:
27 movl $42, %eax
28 ret
30 .safeseh __except_handler3
32 .section .rdata,"dr"
33 .globl __load_config_used
34 __load_config_used:
35 .long 72
36 .fill 60, 1, 0
37 .long ___safe_se_handler_table
38 .long ___safe_se_handler_count
40 #--- except_handler3.def
41 NAME except_handler3.dll
42 EXPORTS
43 _except_handler3