From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 31 Oct 2012 21:52:00 +0100 Subject: [U-Boot] [PATCH] common: Link with GCC instead of LD In-Reply-To: <50918150.1030202@googlemail.com> References: <1351701168-7293-1-git-send-email-marex@denx.de> <50918150.1030202@googlemail.com> Message-ID: <201210312152.00384.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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