2 # RUN: llvm-mc -triple x86_64-pc-win32 %s -filetype=obj -o %t.obj
3 # RUN: lld-link %t.obj -guard:cf -dll -out:%t.dll -noentry
4 # RUN: llvm-readobj --coff-load-config %t.dll | FileCheck %s --check-prefix=CHECK
6 # There should be a single entry in the table for the exported symbol.
8 # CHECK: GuardFidTable [
9 # CHECK-NEXT: 0x180001000
12 .def func_export; .scl 2; .type 32; .endef
14 .section .text,"xr",one_only,func_export
28 .section .drectve,"dr"
29 .ascii " /EXPORT:func_export"
30 .ascii " /EXPORT:label_export"
31 .ascii " /EXPORT:data_export"
34 # Load configuration directory entry (winnt.h _IMAGE_LOAD_CONFIG_DIRECTORY64).
35 # The linker will define the __guard_* symbols.
37 .globl _load_config_used
41 .quad __guard_fids_table
42 .quad __guard_fids_count