[OE-core] [PATCH 15/17] busybox: Use CC instead of bare LD to be the Linker

Khem Raj raj.khem at gmail.com
Wed Sep 9 05:55:48 UTC 2015


> On Sep 1, 2015, at 4:55 PM, Khem Raj <raj.khem at gmail.com> wrote:
> 
> 
>> On Sep 1, 2015, at 2:17 PM, Richard Purdie <richard.purdie at linuxfoundation.org> wrote:
>> 
>>> /mnt/home/kraj/work/angstrom/build/tmp-angstrom-glibc/sysroots/x86_64-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-ld:
>>> error: applets/built-in.o: unsupported ELF file type 2
>>> clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
>> 
>> This breaks DISTRO=poky-lsb:
>> 
>> http://errors.yoctoproject.org/Errors/Details/15705/
>> 
>> (searching for busybox shows many other versions of this too)
>> 
> 
> OK I think we add -fpie to poky-lsb. is that right ?
> now instead of calling ld directly we are calling gcc to do linking so we now also get the baggage of CFLAGS since LDFLAG = CFLAGS
> which is actually correct but in this case we are trying to do partial linking so -pie is useless at this stage of linking. So what we need is
> to ignore -pie ( add -fno-pie) in LDFLAGS when doing partial linking. I will send a reworked patch.

I have sent out a v2 addressing this issue.

http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110245.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150908/131bef00/attachment-0002.sig>


More information about the Openembedded-core mailing list