1 # Check that unknown symbol subsections are ignored with a warning, and a PDB
5 # RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
6 # RUN: lld-link -safeseh:no -subsystem:console -debug -nodefaultlib -entry:foo -out:%t.exe -pdb:%t.pdb %t.obj 2>&1 | FileCheck %s --check-prefix=WARNING
7 # RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
9 # WARNING-NOT: ignoring unknown
10 # WARNING: ignoring unknown debug$S subsection kind 0x1FF
11 # WARNING-NOT: ignoring unknown
14 # CHECK: 4 | S_COMPILE3 [size = 52]
15 # CHECK: machine = intel x86-x64, Ver = clang version SENTINEL, language = c
23 .section .debug$S,"dr"
25 .long 4 # Debug section magic
26 .long 0xF1 # Symbol subsection
27 .long .Ltmp6-.Ltmp5 # Subsection size
29 .short .Ltmp8-.Ltmp7 # Record length
31 .short 4412 # Record kind: S_COMPILE3
32 .long 0 # Flags and language
34 .short 9 # Frontend version
38 .short 9000 # Backend version
42 .asciz "clang version SENTINEL" # Null-terminated compiler version string
46 .long 0x1FF # Unknown subsection kind
47 .long 4 # Subsection size
49 .long 0x800000F1 # Unknown subsection kind
50 .long 4 # Subsection size
52 .long 0x800000F2 # Unknown subsection kind
53 .long 4 # Subsection size
55 .long 0x800000F3 # Unknown subsection kind
56 .long 4 # Subsection size
58 .long 0x800000F4 # Unknown subsection kind
59 .long 4 # Subsection size