------- Comment #15 from davek at gcc dot gnu dot org 2010-02-03 12:02 ------- (In reply to comment #14) > There is a portability issue in is_elf_or_coff: fopen should be called with > "rb" instead of "r". Otherwise, fread fails when a COFF file has 26 sections, > because it is interpreted as a text, and 26 means "end of file".
ROFL, yes of course, good catch. I should have remembered, there was just a thread on the -patches list about adding "b" to the ELF LTO reader for the sake of mingw-based cross-compilers! > Not tried. GCC and Binutils can be built with -flto under MSYS, and they seem > to work. Thanks for the report :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776