llvm-project
28 строк · 826.0 Байт
1# REQUIRES: x86
2# RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
3# RUN: lld-link -safeseh:no /subsystem:console /debug /nodefaultlib /entry:foo /out:%t.exe /pdb:%t.pdb %t.obj
4# RUN: llvm-pdbutil dump -fpo %t.pdb | FileCheck %s
5
6# CHECK: Old FPO Data
7# CHECK-NEXT: ============================================================
8# CHECK-NEXT: RVA | Code | Locals | Params | Prolog | Saved Regs | Use BP | Has SEH | Frame Type
9# CHECK-NEXT: 00001002 | 1 | 2 | 3 | 4 | 0 | false | false | FPO
10
11.text
12_foo:
13ret
14
15.global _foo
16
17.section .debug$F,"dr"
18.long _foo@IMGREL+2
19.long 1 # cbProc
20.long 2 # cdwLocals;
21.short 3 # cdwParams;
22.short 4 # flags
23# cbProlog : 8;
24# cbRegs : 3;
25# fHasSEH : 1;
26# fUseBP : 1;
27# reserved : 1;
28# cbFrame : 2;