• Khem Raj's avatar
    config: Always use GNU ld · 7cb714a5
    Khem Raj authored
    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: 's avatarOtavio Salvador <otavio@ossystems.com.br>
    Signed-off-by: 's avatarKhem Raj <raj.khem@gmail.com>
    Acked-by: 's avatarMike Frysinger <vapier@gentoo.org>
config.mk 10.4 KB