Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] libunwind: use gold for all archs
Date: Wed, 22 Apr 2015 10:21:35 +0800	[thread overview]
Message-ID: <553705AF.4010503@windriver.com> (raw)
In-Reply-To: <21CFB078-5E3A-420E-8058-1901F23F5482@gmail.com>



On 04/22/2015 09:32 AM, Khem Raj wrote:
>
>> On Apr 20, 2015, at 1:05 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>>
>> At least the following boards have build errors without using gold:
>> qemux86, qemux86-64, qemuarm, qemuaarch64, qemuppc.
>>
>> The error is:
>> ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
>> ld: failed to set dynamic section sizes: Bad value
>> ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid
>> ld: failed to set dynamic section sizes: Bad value
>> | collect2: error: ld returned 1 exit status
>>
>> So use gold for all archs to fix the problem.
>
> Please test it with gold on mips, before we apply this patch

Sorry, gold doesn't work for mips or mips64, I will send a patch for that.

// Robert

>
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/recipes-support/libunwind/libunwind.inc |    5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc
>> index 56905c2..c4a7b5e 100644
>> --- a/meta/recipes-support/libunwind/libunwind.inc
>> +++ b/meta/recipes-support/libunwind/libunwind.inc
>> @@ -23,10 +23,7 @@ LIBATOMICS_armv5 = "-latomic_ops"
>> LIBATOMICS_armv4 = "-latomic_ops"
>> LIBATOMICS ?= ""
>>
>> -LDFLAGS_append_x86 = " -fuse-ld=gold"
>> -LDFLAGS_append_x86-64 = " -fuse-ld=gold"
>> -
>> -LDFLAGS_append_aarch64 = " -fuse-ld=gold"
>> +LDFLAGS_append = " -fuse-ld=gold"
>>
>> DEPENDS += "${DEPLIBATOMICS}"
>> DEPLIBATOMICS_armv5 = "libatomics-ops"
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>


      reply	other threads:[~2015-04-22  2:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20  8:05 [PATCH 0/1] libunwind: use gold for all archs Robert Yang
2015-04-20  8:05 ` [PATCH 1/1] " Robert Yang
2015-04-22  1:32   ` Khem Raj
2015-04-22  2:21     ` Robert Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=553705AF.4010503@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox