Error message: "/dev/null: final close failed: File truncated". It fails in coff_apply_checksum() in bfd/coffcode.h: if (!coff_read_word (abfd, &peheader)) return FALSE; Maybe it should just ignore that error.
On Windows (MinGW), you can open "nul" instead of "/dev/null". http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01793.html