fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

--platform:x64 sets the image characteristic as 32 bit ... a bit wierdly

Open KevinRansom opened this issue 2 years ago • 0 comments

dumpbin /headers when <PlatformTarget>x64</PlatformTarget>

The '32 bit word machine' quite wrong for an x64 machine ..

C:\temp\abc>dumpbin obj\Debug\net6.0\abc.dll /headers
Microsoft (R) COFF/PE Dumper Version 14.31.31107.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file obj\Debug\net6.0\abc.dll

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
            8664 machine (x64)
               3 number of sections
...
             12E characteristics
                   Executable
                   Line numbers stripped
                   Symbols stripped
                   Application can handle large (>2GB) addresses
                   32 bit word machine

C# dumpbin produces this:

Dump of file obj\Debug\net6.0\def.dll

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
            8664 machine (x64)
               2 number of sections

              22 characteristics
                   Executable
                   Application can handle large (>2GB) addresses

Which seems more right.

KevinRansom avatar May 04 '22 20:05 KevinRansom