[coreboot] [PATCH] Inefficient test in buildtarget script

Mats Erik Andersson mats.andersson at gisladisker.se
Wed Aug 27 16:41:17 CEST 2008


Hello again,

on the workstation were I did the development, the used gcc is 3.3.5
and ld is 2.15. The remarkable thing is that 

    1) 'ld-2.15 --help' and 'gcc-4.0 -Wl,--help' use STDOUT.

    2) 'gcc-3.3 --help' and 'gcc-3.4 -Wl,--help' use STDERR.

Thus older versions of GCC (presumably 3.*) implement a redirection of output.

Regards

Mats E A

> Hi Mats,
> 
> I would commit this right away, but on my machine, the gcc/linker
> combination doesn't output anything on stderr. Could you tell us the
> output of
> gcc -Wl,--version
> gcc --version
> 
> I'll add that info to the script and commit.
> 
> On 27.08.2008 14:23, Mats Erik Andersson wrote:
> > Capture output from  'ld --help', in order that the test
> > becomes meaningful. The linker puts help texts on stderr.
> >
> > Signed-off-by: Mats Erik Andersson <mats.andersson at gisladisker.se>
> >   
> 
> Regards,
> Carl-Daniel
> 




More information about the coreboot mailing list