brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 5983de5 Raw
48 lines · plain
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.3 4# REQUIRES: x865# RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s6# RUN: lld-link -verbose -safeseh:no -subsystem:console -debug -nodefaultlib -entry:foo -out:%t.exe -pdb:%t.pdb %t.obj 2>&1 | FileCheck %s7 8// XFGHashType should not generate a warning9# CHECK-NOT: ignoring unknown debug$S subsection kind 0xFF10// XFGHashVirtual should not generate a warning11# CHECK-NOT: ignoring unknown debug$S subsection kind 0x10012 13.text14_foo:15ret16 17.global _foo18 19.section .debug$S,"dr"20	.p2align	221	.long	4                       # Debug section magic22	.long	0xF1 # Symbol subsection23	.long	.Ltmp6-.Ltmp5           # Subsection size24.Ltmp5:25	.short	.Ltmp8-.Ltmp7           # Record length26.Ltmp7:27	.short	4412                    # Record kind: S_COMPILE328	.long	0                       # Flags and language29	.short	208                     # CPUType30	.short	9                       # Frontend version31	.short	032	.short	033	.short	034	.short	9000                    # Backend version35	.short	036	.short	037	.short	038	.asciz	"clang version SENTINEL" # Null-terminated compiler version string39	.p2align	240.Ltmp8:41.Ltmp6:42	.long	0xFF # XFGHashType subsection43	.long	4           # Subsection size44	.long  045	.long	0x100 # XFGHashVirtual subsection46	.long	4           # Subsection size47	.long  048