Bug 13059 - MinGW linker can't send output to /dev/null
Summary: MinGW linker can't send output to /dev/null
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 17:09 UTC by Dmitry Gorbachev
Modified: 2012-02-29 11:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2011-08-05 17:09:04 UTC
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.
Comment 1 rene.sugar 2012-02-29 11:46:05 UTC
On Windows (MinGW), you can open "nul" instead of "/dev/null".

http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01793.html