3 # Make a DLL that exports exportfn1.
4 # RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
5 # RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /implib:%t.lib
7 # Make an obj that takes the address of that exported function.
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t2.obj
9 # RUN: lld-link -entry:main -guard:cf %t2.obj %t.lib -nodefaultlib -out:%t.exe
10 # RUN: llvm-readobj --coff-load-config %t.exe | FileCheck %s
12 # Check that the gfids table contains *exactly* two entries, one for exportfn1
14 # CHECK: GuardFidTable [
15 # CHECK-NEXT: 0x{{[0-9A-Fa-f]+0$}}
16 # CHECK-NEXT: 0x{{[0-9A-Fa-f]+0$}}
28 .def main; .scl 2; .type 32; .endef
31 leaq exportfn1
(%rip
), %rax
35 .globl _load_config_used
39 .quad __guard_fids_table
40 .quad __guard_fids_count