llvm.org GIT mirror llvm / 824ab51
[llvm-readobj] Include the PE magic value in printouts This is useful for a testcase in lld. Differential Revision: https://reviews.llvm.org/D34836 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306794 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 2 years ago
3 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
237237 PE32-NEXT: ]
238238 PE32-NEXT: }
239239 PE32-NEXT: ImageOptionalHeader {
240 PE32-NEXT: Magic: 0x10B
240241 PE32-NEXT: MajorLinkerVersion: 11
241242 PE32-NEXT: MinorLinkerVersion: 0
242243 PE32-NEXT: SizeOfCode: 512
1515 CHECK: ]
1616 CHECK: }
1717 CHECK: ImageOptionalHeader {
18 CHECK: Magic: 0x20B
1819 CHECK: MajorLinkerVersion: 11
1920 CHECK: MinorLinkerVersion: 0
2021 CHECK: SizeOfCode: 512
677677 template
678678 void COFFDumper::printPEHeader(const PEHeader *Hdr) {
679679 DictScope D(W, "ImageOptionalHeader");
680 W.printHex ("Magic", Hdr->Magic);
680681 W.printNumber("MajorLinkerVersion", Hdr->MajorLinkerVersion);
681682 W.printNumber("MinorLinkerVersion", Hdr->MinorLinkerVersion);
682683 W.printNumber("SizeOfCode", Hdr->SizeOfCode);