This is useful for a testcase in lld.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
681 ↗ | (On Diff #104735) | I believe this is 0x8086 for x86, so you want to print it out in hex. |
tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
681 ↗ | (On Diff #104735) | No, it's not that (that's the COFF machine magic word); this is the PE type indicator, 0x10b for normal PE32 and 0x20b for PE32+ (for 64 bit object files). But you're right that it might make more sense to print it in hex. |
Comment Actions
Added a test for this in the only section of file-headers.test that included ImageOptionalHeader.