[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / COFF / safeseh-md.s
blobd065af872b8f908241edd1c976843c77019133af
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
6 # CHECK: SEHTable [
7 # CHECK-NEXT: 0x
8 # CHECK-NEXT: ]
10 .def @feat.00;
11 .scl 3;
12 .type 0;
13 .endef
14 .globl @feat.00
15 @feat.00 = 1
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
27 .safeseh __except_handler3
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