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 4# RUN: llvm-readobj --coff-load-config %t.exe | FileCheck %s 5 6# CHECK: SEHTable [ 7# CHECK-NEXT: 0x 8# CHECK-NEXT: ] 9 10 .def @feat.00; 11 .scl 3; 12 .type 0; 13 .endef 14 .globl @feat.00 15@feat.00 = 1 16 17 .def _main; 18 .scl 2; 19 .type 32; 20 .endef 21 .section .text,"xr",one_only,_main 22 .globl _main 23_main: 24 movl $42, %eax 25 ret 26 27.safeseh __except_handler3 28 29 .section .rdata,"dr" 30.globl __load_config_used 31__load_config_used: 32 .long 72 33 .fill 60, 1, 0 34 .long ___safe_se_handler_table 35 .long ___safe_se_handler_count 36