[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: collect2 outputs help to stderr
From: |
Simon Howard |
Subject: |
Re: collect2 outputs help to stderr |
Date: |
Tue, 12 Oct 2004 07:26:07 +0100 |
Ok, my mistake. The help page says "Report bugs to address@hidden".
On 11 Oct 2004 14:39:49 -0400, Ian Lance Taylor <address@hidden> wrote:
>
>
> Simon Howard <address@hidden> writes:
>
> > The collect2 program, part of ld, gives the output from its --help
> > option to stderr rather than stdout. This makes it impossible to type
> > "collect2 | more" to display the help a page at a time. It also
> > contravenes the GNU coding standards which specify that output should
> > be to stdout:
> >
> > http://www.gnu.org/prep/standards/standards.html#Command_002dLine-Interfaces
> >
> > --help
> > This option should output brief documentation for how to invoke
> > the program, on standard output, then exit successfully.
> >
> > This is with GNU ld version 2.15
>
> The collect2 program is not part of ld. It is part of gcc. ld --help
> correctly reports to stdout.
>
> collect2 is a wrapper program provided by gcc which invokes ld. From
> a brief glance, it looks to me like collect2 gathers stdout and stderr
> into one stream, and then dumps that stream on stderr while demangling
> any symbols.
>
> Anyhow, this bug needs to be fixed by the gcc project, not the
> binutils project.
>
> Ian
>
--
Simon Howard
http://fraggle.alkali.org/