[pdbdump] Print section header flags.

llvm-svn: 271943
This commit is contained in:
Rui Ueyama 2016-06-06 21:34:55 +00:00
parent 468208a1de
commit 2c5384ae4c
2 changed files with 40 additions and 9 deletions

View File

@ -859,7 +859,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0 ; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 0 ; EMPTY-NEXT: Number of Relocations: 0
; EMPTY-NEXT: Number of Linenumbers: 0 ; EMPTY-NEXT: Number of Linenumbers: 0
; EMPTY-NEXT: Characteristics: 1610612768 ; EMPTY-NEXT: Characteristics [ (0x60000020)
; EMPTY-NEXT: IMAGE_SCN_CNT_CODE (0x20)
; EMPTY-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000)
; EMPTY-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
; EMPTY-NEXT: ]
; EMPTY-NEXT: } ; EMPTY-NEXT: }
; EMPTY-NEXT: { ; EMPTY-NEXT: {
; EMPTY-NEXT: Name: .rdata ; EMPTY-NEXT: Name: .rdata
@ -871,7 +875,10 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0 ; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 0 ; EMPTY-NEXT: Number of Relocations: 0
; EMPTY-NEXT: Number of Linenumbers: 0 ; EMPTY-NEXT: Number of Linenumbers: 0
; EMPTY-NEXT: Characteristics: 1073741888 ; EMPTY-NEXT: Characteristics [ (0x40000040)
; EMPTY-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; EMPTY-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
; EMPTY-NEXT: ]
; EMPTY-NEXT: } ; EMPTY-NEXT: }
; EMPTY-NEXT: { ; EMPTY-NEXT: {
; EMPTY-NEXT: Name: .data ; EMPTY-NEXT: Name: .data
@ -883,7 +890,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0 ; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 0 ; EMPTY-NEXT: Number of Relocations: 0
; EMPTY-NEXT: Number of Linenumbers: 0 ; EMPTY-NEXT: Number of Linenumbers: 0
; EMPTY-NEXT: Characteristics: 3221225536 ; EMPTY-NEXT: Characteristics [ (0xC0000040)
; EMPTY-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; EMPTY-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
; EMPTY-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)
; EMPTY-NEXT: ]
; EMPTY-NEXT: } ; EMPTY-NEXT: }
; EMPTY-NEXT: { ; EMPTY-NEXT: {
; EMPTY-NEXT: Name: .reloc ; EMPTY-NEXT: Name: .reloc
@ -895,7 +906,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0 ; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 0 ; EMPTY-NEXT: Number of Relocations: 0
; EMPTY-NEXT: Number of Linenumbers: 0 ; EMPTY-NEXT: Number of Linenumbers: 0
; EMPTY-NEXT: Characteristics: 1107296320 ; EMPTY-NEXT: Characteristics [ (0x42000040)
; EMPTY-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; EMPTY-NEXT: IMAGE_SCN_MEM_DISCARDABLE (0x2000000)
; EMPTY-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
; EMPTY-NEXT: ]
; EMPTY-NEXT: } ; EMPTY-NEXT: }
; EMPTY-NEXT: ] ; EMPTY-NEXT: ]
; EMPTY: New FPO [ ; EMPTY: New FPO [
@ -1584,7 +1599,11 @@
; ALL: File Pointer to Linenumbers: 0 ; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 0 ; ALL: Number of Relocations: 0
; ALL: Number of Linenumbers: 0 ; ALL: Number of Linenumbers: 0
; ALL: Characteristics: 1610612768 ; ALL: Characteristics [ (0x60000020)
; ALL: IMAGE_SCN_CNT_CODE (0x20)
; ALL: IMAGE_SCN_MEM_EXECUTE (0x20000000)
; ALL: IMAGE_SCN_MEM_READ (0x40000000)
; ALL: ]
; ALL: } ; ALL: }
; ALL: { ; ALL: {
; ALL: Name: .rdata ; ALL: Name: .rdata
@ -1596,7 +1615,10 @@
; ALL: File Pointer to Linenumbers: 0 ; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 0 ; ALL: Number of Relocations: 0
; ALL: Number of Linenumbers: 0 ; ALL: Number of Linenumbers: 0
; ALL: Characteristics: 1073741888 ; ALL: Characteristics [ (0x40000040)
; ALL: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; ALL: IMAGE_SCN_MEM_READ (0x40000000)
; ALL: ]
; ALL: } ; ALL: }
; ALL: { ; ALL: {
; ALL: Name: .data ; ALL: Name: .data
@ -1608,7 +1630,11 @@
; ALL: File Pointer to Linenumbers: 0 ; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 0 ; ALL: Number of Relocations: 0
; ALL: Number of Linenumbers: 0 ; ALL: Number of Linenumbers: 0
; ALL: Characteristics: 3221225536 ; ALL: Characteristics [ (0xC0000040)
; ALL: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; ALL: IMAGE_SCN_MEM_READ (0x40000000)
; ALL: IMAGE_SCN_MEM_WRITE (0x80000000)
; ALL: ]
; ALL: } ; ALL: }
; ALL: { ; ALL: {
; ALL: Name: .reloc ; ALL: Name: .reloc
@ -1620,7 +1646,11 @@
; ALL: File Pointer to Linenumbers: 0 ; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 0 ; ALL: Number of Relocations: 0
; ALL: Number of Linenumbers: 0 ; ALL: Number of Linenumbers: 0
; ALL: Characteristics: 1107296320 ; ALL: Characteristics [ (0x42000040)
; ALL: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
; ALL: IMAGE_SCN_MEM_DISCARDABLE (0x2000000)
; ALL: IMAGE_SCN_MEM_READ (0x40000000)
; ALL: ]
; ALL: } ; ALL: }
; ALL: ] ; ALL: ]

View File

@ -665,7 +665,8 @@ Error LLVMOutputStyle::dumpSectionHeaders() {
P.printNumber("File Pointer to Linenumbers", Section.PointerToLinenumbers); P.printNumber("File Pointer to Linenumbers", Section.PointerToLinenumbers);
P.printNumber("Number of Relocations", Section.NumberOfRelocations); P.printNumber("Number of Relocations", Section.NumberOfRelocations);
P.printNumber("Number of Linenumbers", Section.NumberOfLinenumbers); P.printNumber("Number of Linenumbers", Section.NumberOfLinenumbers);
P.printNumber("Characteristics", Section.Characteristics); P.printFlags("Characteristics", Section.Characteristics,
getImageSectionCharacteristicNames());
} }
return Error::success(); return Error::success();
} }