[PATCH] D34836: [llvm-readobj] Include the PE magic value in printouts

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 14:17:17 PDT 2017


ruiu added inline comments.


================
Comment at: tools/llvm-readobj/COFFDumper.cpp:681
   DictScope D(W, "ImageOptionalHeader");
+  W.printNumber("Magic", Hdr->Magic);
   W.printNumber("MajorLinkerVersion", Hdr->MajorLinkerVersion);
----------------
I believe this is 0x8086 for x86, so you want to print it out in hex.


https://reviews.llvm.org/D34836





More information about the llvm-commits mailing list