1 // Check that we ignore XFG subsections in CodeView information.
2 // This test should
be removed if we ever end up adding XFG support to lld.
5 # RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
6 # RUN: lld-link -verbose -safeseh:no -subsystem:console -debug -nodefaultlib -entry:foo -out:%t.exe -pdb:%t.pdb %t.obj 2>&1 | FileCheck %s
8 // XFGHashType should
not generate
a warning
9 # CHECK-NOT: ignoring unknown debug$S subsection kind 0xFF
10 // XFGHashVirtual should
not generate
a warning
11 # CHECK-NOT: ignoring unknown debug$S subsection kind 0x100
19 .section .debug$S,"dr"
21 .long 4 # Debug section magic
22 .long 0xF1 # Symbol subsection
23 .long .Ltmp6-.Ltmp5 # Subsection size
25 .short .Ltmp8-.Ltmp7 # Record length
27 .short 4412 # Record kind: S_COMPILE3
28 .long 0 # Flags and language
30 .short 9 # Frontend version
34 .short 9000 # Backend version
38 .asciz "clang version SENTINEL" # Null-terminated compiler version string
42 .long 0xFF # XFGHashType subsection
43 .long 4 # Subsection size
45 .long 0x100 # XFGHashVirtual subsection
46 .long 4 # Subsection size