[llvm] r271943 - [pdbdump] Print section header flags.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 14:34:55 PDT 2016
Author: ruiu
Date: Mon Jun 6 16:34:55 2016
New Revision: 271943
URL: http://llvm.org/viewvc/llvm-project?rev=271943&view=rev
Log:
[pdbdump] Print section header flags.
Modified:
llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test
llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp
Modified: llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test?rev=271943&r1=271942&r2=271943&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test (original)
+++ llvm/trunk/test/DebugInfo/PDB/pdbdump-headers.test Mon Jun 6 16:34:55 2016
@@ -859,7 +859,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 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: Name: .rdata
@@ -871,7 +875,10 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 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: Name: .data
@@ -883,7 +890,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 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: Name: .reloc
@@ -895,7 +906,11 @@
; EMPTY-NEXT: File Pointer to Linenumbers: 0
; EMPTY-NEXT: Number of Relocations: 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: New FPO [
@@ -1584,7 +1599,11 @@
; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 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: Name: .rdata
@@ -1596,7 +1615,10 @@
; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 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: Name: .data
@@ -1608,7 +1630,11 @@
; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 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: Name: .reloc
@@ -1620,7 +1646,11 @@
; ALL: File Pointer to Linenumbers: 0
; ALL: Number of Relocations: 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: ]
Modified: llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp?rev=271943&r1=271942&r2=271943&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/LLVMOutputStyle.cpp Mon Jun 6 16:34:55 2016
@@ -665,7 +665,8 @@ Error LLVMOutputStyle::dumpSectionHeader
P.printNumber("File Pointer to Linenumbers", Section.PointerToLinenumbers);
P.printNumber("Number of Relocations", Section.NumberOfRelocations);
P.printNumber("Number of Linenumbers", Section.NumberOfLinenumbers);
- P.printNumber("Characteristics", Section.Characteristics);
+ P.printFlags("Characteristics", Section.Characteristics,
+ getImageSectionCharacteristicNames());
}
return Error::success();
}
More information about the llvm-commits
mailing list