2 # RUN: llvm-mc -triple x86_64-windows-msvc -filetype=obj -o %t.obj %s
3 # RUN: yaml2obj %p/Inputs/guardcf-align-foobar.yaml \
4 # RUN: > %T/guardcf-align-foobar.obj
5 # RUN: lld-link -out:%T/guardcf-align.exe -entry:main -guard:cf \
6 # RUN: %t.obj %T/guardcf-align-foobar.obj
7 # RUN: llvm-readobj --coff-load-config %T/guardcf-align.exe | FileCheck %s
9 # Check that the gfids table contains at least one entry that ends in 0
10 # and no entries that end in something other than 0.
11 # CHECK: GuardFidTable [
12 # CHECK-NOT: 0x{{[0-9A-Fa-f]+[^0]$}}
13 # CHECK: 0x{{[0-9A-Fa-f]+0$}}
14 # CHECK-NOT: 0x{{[0-9A-Fa-f]+[^0]$}}
17 # @feat.00 and _load_config_used to indicate we have gfids.
26 .globl _load_config_used
30 .quad __guard_fids_table
31 .quad __guard_fids_count
35 # Functions that are called indirectly.
36 .section .gfids$y,"dr"