[OE-core] [PATCH RFC] binutils: allow distro to select gold as default cross-linker

Khem Raj raj.khem at gmail.com
Wed Jun 15 02:44:33 UTC 2011


On 06/14/2011 08:38 AM, Koen Kooi wrote:
>
> Op 14 jun 2011, om 17:30 heeft Phil Blundell het volgende geschreven:
>
>> This is not particularly pretty but I couldn't think of any obviously
>> better way of doing it.  Any suggestions?
>>
>> Signed-off-by: Phil Blundell<philb at gnu.org>
>> ---
>> meta/recipes-devtools/binutils/binutils-cross.inc |    3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc
>> index 4b90972..5a41970 100644
>> --- a/meta/recipes-devtools/binutils/binutils-cross.inc
>> +++ b/meta/recipes-devtools/binutils/binutils-cross.inc
>> @@ -5,7 +5,8 @@ EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
>>                  --program-prefix=${TARGET_PREFIX} \
>>                  --disable-install-libbfd \
>>                  --disable-werror \
>> -                --enable-poison-system-directories"
>> +                --enable-poison-system-directories \
>> +		${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)}"
>
> Out of curiousity, how well does gold work nowadays? Last I remember hearing of it was in its x86-only days.
>

it works well on arm in fact link times are way better on some 
(especially C++) applications using gold. We can try to use gold for 
x86, x86_64 and arm to start with.

> regards,
>
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





More information about the Openembedded-core mailing list