summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/byacc/byacc.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-09-25 13:28:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-28 12:00:25 +0100
commit8227d49edc525bd0369d01fee8e6d6184b0f1723 (patch)
tree046b53231680dfb319d58a951f7074a41f87aa16 /meta/recipes-extended/byacc/byacc.inc
parenta3c48179a9410edb29b260595dea2d83ce20b1d8 (diff)
downloadpoky-8227d49edc525bd0369d01fee8e6d6184b0f1723.tar.gz
busybox: Use CC instead of bare LD to be the Linker
This patch was on mailing list, another patch to make sure -r is not passed directly but via -Wl switch is added. This was exposed when using clang and gold linker, clang does not have -r switch to do relocatable objects and problem happens specific to OE becuase we use LD = CC now what happens is that busybox assumes that linker will be called directly, and hence sprinkles linkers options in its kbuild system which aggregate into LDFLAGS, some of these options are happily ignored by gcc as well but it passes -r options rightly to linker so it all works, however when using clang, this falls apart since -r is not known option for clang so it drops this option and all obects which should be partially linked becomes ET_EXEC and when they are added to final link then gold starts to get confused /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) (From OE-Core rev: 117282486b68e4da468c21795ea87bfc85625885) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/byacc/byacc.inc')
0 files changed, 0 insertions, 0 deletions