generic-poky/meta/recipes-core
Khem Raj 8227d49edc 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>
2015-09-28 12:00:25 +01:00
..
base-files base-files: Remove /proc/bus/usb from fstab. 2015-05-15 22:08:03 +01:00
base-passwd meta: Fix Upstream-Status statements 2015-09-12 23:01:53 +01:00
busybox busybox: Use CC instead of bare LD to be the Linker 2015-09-28 12:00:25 +01:00
console-tools console-tools: Remove floating runtime dependency on flex 2014-04-24 17:55:13 +01:00
coreutils meta: Fix Upstream-Status statements 2015-09-12 23:01:53 +01:00
dbus meta: Fix Upstream-Status statements 2015-09-12 23:01:53 +01:00
dbus-wait recipes: Add missing pkgconfig class inherits 2014-06-03 16:49:19 +01:00
dropbear dropbear: update to 2015.68 2015-09-01 11:44:01 +01:00
expat recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2) 2014-02-20 14:28:13 +00:00
gettext gettext_0.16.1: add -lrt and -lpthread to LDFLAGS for uclibc builds 2015-08-10 12:40:26 -07:00
glib-2.0 glib: add a warning suppression patch to glib 2015-08-24 23:46:59 +01:00
glib-networking classes/gnomebase: change tarball compression to xz 2015-08-24 23:46:58 +01:00
glibc glibc/mmc-utils: Rename 'BRANCH' variable to 'SRCBRANCH' for clearness 2015-09-28 12:00:20 +01:00
ifupdown ifupdown: create alternative links 2015-09-04 16:23:50 +01:00
images core-image-minimal: Add 4M extra space when using systemd 2015-08-30 12:35:56 +01:00
init-ifupdown meta: set proper S value 2015-01-23 11:36:27 +00:00
initrdscripts initramfs-framework: better error reporting for invalid root boot parameter 2015-09-23 09:52:59 +01:00
initscripts initscripts: Fix regression for requiring /bin/bash 2015-08-10 12:40:24 -07:00
jpeg jpeg: update to version 9a 2015-08-30 12:36:00 +01:00
kbd kbd: Mark glibc headers under __GLIBC__ 2015-04-13 22:33:23 +01:00
libcgroup meta: enable parallel build for several recipes 2015-02-15 21:58:27 +00:00
libxml libxml2: Security Advisory - libxml2 - CVE-2015-1819 2015-06-18 09:14:07 +01:00
meta buildtools-tarball: Add inherit toolchain-scripts 2015-07-12 22:55:41 +01:00
ncurses ncurses-terminfo-base: include screen-256color 2015-07-23 08:48:39 +01:00
netbase netbase: add rpcbind as an alias to sunrpc 2015-07-12 22:55:46 +01:00
os-release os-release: add the public package-signing key 2015-09-03 12:43:19 +01:00
packagegroups packagegroup-core-standalone-sdk-target: ensure libatomic is in SDK 2015-09-28 12:00:21 +01:00
psplash psplash: Turn psplash_fb_plot_pixel() into static inline 2015-08-30 12:35:54 +01:00
readline recipes: Delete superfluous assignments, S = ${WORKDIR}/${BP} 2015-02-24 17:41:44 +00:00
sysfsutils sysfsutils: remove libsysfs-dev and libsysfs-staticdev from PACKAGES 2015-04-13 22:33:21 +01:00
systemd systemd: apply persistent storage udev rules also for /dev/hd* 2015-09-28 12:00:20 +01:00
sysvinit sysvinit: Fix makefile bug found with clang 2015-08-30 12:35:52 +01:00
uclibc uclibc: Upgrade to tip of master 2015-08-19 18:05:36 +01:00
udev meta: Fix Upstream-Status statements 2015-09-12 23:01:53 +01:00
update-rc.d update-rc.d: fix to handle priority numbers correctly 2014-06-01 14:29:30 +01:00
util-linux Update alternatives of man pages 2015-07-08 00:01:23 +01:00
volatile-binds volatile-binds: correct path of command umount 2015-07-23 08:48:39 +01:00
zlib meta: Fix Upstream-Status statements 2015-09-12 23:01:53 +01:00