[U-Boot] [PATCH] common: Link with GCC instead of LD

Marek Vasut marex at denx.de
Wed Oct 31 21:52:00 CET 2012


Dear Andreas Bießmann,

[...]

> > -# Always use GNU ld
> > -LD	= $(shell if $(CROSS_COMPILE)ld.bfd -v > /dev/null 2>&1; \
> > -		then echo "$(CROSS_COMPILE)ld.bfd"; else echo 
"$(CROSS_COMPILE)ld";
> > fi;) +# Link with GCC
> > +LD	= $(CROSS_COMPILE)gcc
> 
> with this change we should also remove LD_VERSION_STRING from
> $(VERSION_FILE). Currently it will call 'gcc -v' which will print
> compile switches to stderr.
> 
> Compiled and runtime tested on avr32 atngw100mkii, on first sight it
> seems sane.

Good catch. I added it to u-boot-testing/dm-gcclink branch already, but will 
repost after I get a bit more feedback.

Thanks!

Best regards,
Marek Vasut


More information about the U-Boot mailing list