Some tools such as yasm set a bogus value to object file's
VirtualSize field, so we cannot trust this field. This patch
determines if it's an object or an executable by checking
existence of PE header.
Details
Details
- Reviewers
majnemer
Diff Detail
Diff Detail
I would add a comment saying that VirtualSize should be zero for object files but isn't due to buggy COFF writers.