------- Comment #14 from d dot g dot gorbachev at gmail dot com 2010-02-03 10:15 ------- 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".
(In reply to comment #13) > Are you able to run the testsuite in the configuration you're building? (i.e. > msys or cross-compile?) If so, would you paste the output from running "make > check-gcc-c RUNTESTFLAGS=lto.exp" in the top level of your build dir please? Not tried. GCC and Binutils can be built with -flto under MSYS, and they seem to work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776