Skip to content

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

@KevinRansom

Description

@KevinRansom

dumpbin /headers when
x64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions