1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/DebugInfo/PDB/section-headers.test
Zachary Turner 83e6215a4e [llvm-pdbutil] Dump image section headers.
Image section headers are stored in the DBI stream, but we
had no way to dump them.  This patch adds dumping support,
along with some tests that LLD actually dumps them correctly.

Differential Revision: https://reviews.llvm.org/D36332

llvm-svn: 310107
2017-08-04 20:02:38 +00:00

67 lines
2.7 KiB
Plaintext

RUN: llvm-pdbutil dump -section-headers %p/Inputs/empty.pdb | FileCheck %s
CHECK: Section Headers
CHECK-NEXT: ============================================================
CHECK-LABEL: SECTION HEADER #1
CHECK-NEXT: .text name
CHECK-NEXT: 101A virtual size
CHECK-NEXT: 1000 virtual address
CHECK-NEXT: 1200 size of raw data
CHECK-NEXT: 400 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 60000020 flags
CHECK-NEXT: IMAGE_SCN_CNT_CODE
CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-LABEL: SECTION HEADER #2
CHECK-NEXT: .rdata name
CHECK-NEXT: 2B2 virtual size
CHECK-NEXT: 3000 virtual address
CHECK-NEXT: 400 size of raw data
CHECK-NEXT: 1600 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 40000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-LABEL: SECTION HEADER #3
CHECK-NEXT: .data name
CHECK-NEXT: 4 virtual size
CHECK-NEXT: 4000 virtual address
CHECK-NEXT: 0 size of raw data
CHECK-NEXT: 0 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: C0000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-NEXT: IMAGE_SCN_MEM_WRITE
CHECK-LABEL: SECTION HEADER #4
CHECK-NEXT: .reloc name
CHECK-NEXT: 8 virtual size
CHECK-NEXT: 5000 virtual address
CHECK-NEXT: 200 size of raw data
CHECK-NEXT: 1A00 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 42000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_DISCARDABLE
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK: Original Section Headers
CHECK-NEXT: ============================================================
CHECK-NEXT: PDB does not contain the requested image section header type