[U-Boot] [PATCH] config: Always use GNU ld

Anatolij Gustschin agust at denx.de
Fri Aug 10 22:48:20 CEST 2012


Hi,

On Thu,  2 Aug 2012 13:19:34 -0300
Otavio Salvador <otavio at ossystems.com.br> wrote:

> From: Khem Raj <raj.khem at gmail.com>
> 
> 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 at ossystems.com.br>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  config.mk |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

applied to my staging branch, thanks!

Anatolij


More information about the U-Boot mailing list