mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +00:00
6c8e8aeeac
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310107 91177308-0d34-0410-b5e6-96231b3b80d8
67 lines
2.7 KiB
Plaintext
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
|