From: Carlos Alberto Lopez Perez <clopez@igalia.com>
To: Khem Raj <raj.khem@gmail.com>, Phil Blundell <pb@pbcl.net>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold
Date: Tue, 15 Sep 2015 01:01:46 +0200 [thread overview]
Message-ID: <55F751DA.1020903@igalia.com> (raw)
In-Reply-To: <E1DF44AB-9219-4848-9031-60846FC2BF7B@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]
On 14/09/15 09:24, Khem Raj wrote:
>
>> On Sep 11, 2015, at 7:51 AM, Phil Blundell <pb@pbcl.net> wrote:
>>
>> On Fri, 2015-09-11 at 14:49 +0200, Carlos Alberto Lopez Perez wrote:
>>> * When ld-is-gold is enabled in DISTRO_FEATURES, matchbox-keyboard
>>> will fail to build with this error:
>>>
>>> ld: error: matchbox-keyboard-image.o: requires unsupported dynamic
>>> reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
>>
>> This is only an issue for ARM (and only for Thumb2 at that). I don't
>> think it's necessarily appropriate to force -fPIC on all targets.
>>
>> Also, before adding this sort of hack it would be worth verifying
>> whether this is in fact a toolchain bug and, if it is, fixing it there.
>>
>
> This may not be a toolchain bug if there is a MOVW_ABS relocation being emitted
> into an object that is eventually linked into shared library. Using -fPIC seems to be right fix
> I know bfd linker silently ignored these relocations and generated bad .so files but that was fixed
> several years ago. So I think what needs to be looked at is why does same .o links ok with bfd linker
> is it some linker trampoline code thats in question here which may be different between gold and ld
>
> Carlos
>
> Can you check the linker cmdline of failing link step and see if its generating a shared object there ?
> if thats the case and I assume gcc is generating this relocation into both
>
It looks is generating an executable (matchbox-keyboard).
Full log: http://sprunge.us/VPIN
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
next prev parent reply other threads:[~2015-09-14 23:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 12:49 [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold Carlos Alberto Lopez Perez
2015-09-11 14:51 ` Phil Blundell
2015-09-11 16:46 ` Carlos Alberto Lopez Perez
2015-09-14 7:24 ` Khem Raj
2015-09-14 23:01 ` Carlos Alberto Lopez Perez [this message]
2016-01-14 18:27 ` Khem Raj
2016-01-14 21:22 ` Phil Blundell
2016-01-17 11:15 ` Khem Raj
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=55F751DA.1020903@igalia.com \
--to=clopez@igalia.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=pb@pbcl.net \
--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