]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
config: Always use GNU ld
authorKhem Raj <raj.khem@gmail.com>
Thu, 2 Aug 2012 06:19:34 +0000 (06:19 +0000)
committerAnatolij Gustschin <agust@denx.de>
Fri, 10 Aug 2012 21:26:10 +0000 (23:26 +0200)
commit7cb714a57837f1352d737ae07b56a5ce47c40431
treeed749c5b5e0b7f264dcf7c15c1f734d8a85e5f98
parent578f35a338ea45b425f734a7772a49ffd796c6bb
config: Always use GNU ld

This patch makes sure that we always use the GNU ld. U-Boot uses certain
construct e.g. OVERLAY which are not implemented in gold therefore it
always needs GNU ld for linking.

It works well if default linker in toolchain is GNU ld but in some
cases we can have gold to be the default linker and also ship GNU ld
but not as default in such cases its called $(PREFIX)ld.bfd, with this
patch we make sure that if $(PREFIX)ld.bfd exists than we use that for
our ld.

This way it does not matter what the default ld is.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
config.mk