[meta-ti] [PATCH] u-boot_2011.09: Always use gnu ld for LD

Koen Kooi koen at dominion.thruhere.net
Wed Dec 21 00:38:14 PST 2011


Op 21 dec. 2011, om 00:54 heeft Khem Raj het volgende geschreven:

> u-boot wants GNU ld and cant link with gold
> so when default linker is gold we make sure
> that it still uses good old GNU ld
> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
> recipes-bsp/u-boot/u-boot/always-use-bfd-ld.patch |   29 +++++++++++++++++++++
> recipes-bsp/u-boot/u-boot_2011.09.bb              |    3 +-
> 2 files changed, 31 insertions(+), 1 deletions(-)
> create mode 100644 recipes-bsp/u-boot/u-boot/always-use-bfd-ld.patch

Could you make the patch itself git am-able please? This like From: and Subject are missing.

> diff --git a/recipes-bsp/u-boot/u-boot/always-use-bfd-ld.patch b/recipes-bsp/u-boot/u-boot/always-use-bfd-ld.patch
> new file mode 100644
> index 0000000..a527317
> --- /dev/null
> +++ b/recipes-bsp/u-boot/u-boot/always-use-bfd-ld.patch
> @@ -0,0 +1,29 @@
> +This patch makes sure that we always use the GNU ld. u-boot uses certain contruct
> +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.
> +
> +Upstream-status: Pending
> +
> +Signed-off-by: Khem Raj <raj.khem at gmail.com>
> +
> +--- a/config.mk
> ++++ b/config.mk


regards,

Koen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/meta-ti/attachments/20111221/737c5fb2/attachment.pgp>


More information about the meta-ti mailing list