<div dir="ltr">This is slightly offtopic, but maybe some of the Windows folks know an answer to this question. I've been working on <a href="https://ghc.haskell.org/trac/ghc/ticket/9686" target="_blank">#9686</a>, but have been blocked by Windows rejecting all my attempts to add a custom section to a binary withthe error "bash: ./c.exe: cannot execute binary file: Exec format error". <div><br></div><div>I'm not sure if this is a gcc/binutils bug or not (the exact same commands with the same tools work fine on Linux binaries). I have filed <a href="http://sourceforge.net/p/mingw/bugs/2239">http://sourceforge.net/p/mingw/bugs/2239</a> and <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=17466" target="_blank" style="font-size:13px;font-family:arial,sans-serif">https://sourceware.org/bugzilla/show_bug.cgi?id=17466</a> to see what the developers say, but have not gotten a response yet. Perhaps someone here knows what's going on?<br><div><br></div>-- <br>Gintautas Miliauskas


</div></div>