separate_debug_file_exists() opens the debug info file as a text file on MinGW. This means it's incorrectly read: CRLF translation takes place and a byte 0x1a (^Z) is treated as the end of file. This means that it's very unlikely that separate debug files pass the crc check.
Solution: open the file with the O_BINARY flag. -- Summary: libbfd: separate debug files open as text on MinGW, breaks Product: binutils Version: 2.19 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: res at crystalspace3d dot org CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-mingw32 GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://sourceware.org/bugzilla/show_bug.cgi?id=5328 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils