#39146: mingw linker creates invalid PE files Open Date: 2019-04-20 01:00 Last Update: 2019-05-16 21:22 URL for this Ticket: https://osdn.net//projects/mingw/ticket/39146 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39146 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2019-05-16 21:22 Updated by: keith * Status Update from Open to Closed * Resolution Update from None to Won't Fix Comment: I take issue with your assessment, and am closing this as "won't fix" — not that we could fix it anyway, because it is not our bug! My reasoning goes as follows:— 1. Microsoft's dumpbin tool is hardly an effective yardstick for determination of the validity of PE-COFF executables. 2. By your own admission, the git.exe about which you complain, can be loaded and executed successfully by Windows, and Microsoft's windbg can parse it; that, for me, is a more effective validation yardstick. 3. This git.exe is a third party product, which we neither distribute, nor maintain; furthermore, there is no evidence that our tools play any part in its creation — on the contrary, there is strong evidence that they do not! On this basis, I conclude that it is not git.exe which is at fault, but rather dumpbin which is defective; only Microsoft can fix that. --------------------------------------------------------------------- Ticket Status: Reporter: brucedawson Owner: (None) Type: Issues Status: Closed Priority: 5 - Medium MileStone: (None) Component: (None) Severity: 5 - Medium Resolution: Won't Fix --------------------------------------------------------------------- Ticket details: When using git.exe on Windows as part of the Chromium project I tried to obtain details about the debug information (PDB files) associated with git.exe by using Visual Studio's dumpbin. This failed due to invalid fields in the git.exe PE file. Details can be found in this Visual Studio bug: https://developercommunity.visualstudio.com/content/problem/386596/ dumpbin-fails-on-gitexe-for-windows.html Although Microsoft may update dumpbin to work around this bug in the git.exe binary as created by mingw it would be preferable if mingw would stop creating invalid PE files. I obtained git.exe from https://github.com/git-for-windows/git/tree/ v2.19.1.windows.1 -- Ticket information of MinGW - Minimalist GNU for Windows project MinGW - Minimalist GNU for Windows Project is hosted on OSDN Project URL: https://osdn.net/projects/mingw/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/mingw/ticket/39146 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39146