File: pdb-xfg-section.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (47 lines) | stat: -rw-r--r-- 1,427 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Check that we ignore XFG subsections in CodeView information.
// This test should be removed if we ever end up adding XFG support to lld.

# REQUIRES: x86
# RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
# RUN: lld-link -verbose -safeseh:no -subsystem:console -debug -nodefaultlib -entry:foo -out:%t.exe -pdb:%t.pdb %t.obj 2>&1 | FileCheck %s

// XFGHashType should not generate a warning
# CHECK-NOT: ignoring unknown debug$S subsection kind 0xFF
// XFGHashVirtual should not generate a warning
# CHECK-NOT: ignoring unknown debug$S subsection kind 0x100

.text
_foo:
ret

.global _foo

.section .debug$S,"dr"
	.p2align	2
	.long	4                       # Debug section magic
	.long	0xF1 # Symbol subsection
	.long	.Ltmp6-.Ltmp5           # Subsection size
.Ltmp5:
	.short	.Ltmp8-.Ltmp7           # Record length
.Ltmp7:
	.short	4412                    # Record kind: S_COMPILE3
	.long	0                       # Flags and language
	.short	208                     # CPUType
	.short	9                       # Frontend version
	.short	0
	.short	0
	.short	0
	.short	9000                    # Backend version
	.short	0
	.short	0
	.short	0
	.asciz	"clang version SENTINEL" # Null-terminated compiler version string
	.p2align	2
.Ltmp8:
.Ltmp6:
	.long	0xFF # XFGHashType subsection
	.long	4           # Subsection size
	.long  0
	.long	0x100 # XFGHashVirtual subsection
	.long	4           # Subsection size
	.long  0