aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2018-12-04 16:00:57 +0100
committerArmin Kuster <akuster808@gmail.com>2019-02-04 21:25:58 -0800
commit61d159eb11cdef3d24a7aa58d07fc1e1b4f9191f (patch)
tree45533d552403a1b40184fbc3aebd1042db1a6351
parent25a65a40494c9153f9129224b06c91feeaae17cc (diff)
downloadmeta-openembedded-61d159eb11cdef3d24a7aa58d07fc1e1b4f9191f.tar.gz
meta-openembedded-61d159eb11cdef3d24a7aa58d07fc1e1b4f9191f.tar.bz2
meta-openembedded-61d159eb11cdef3d24a7aa58d07fc1e1b4f9191f.zip
klibc: fix build for mipsel and mips64el with security flags enabled
Fix relocations like: | mipsel-oe-linux-musl-ld.bfd: usr/klibc/libc.a(kill.o): relocation R_MIPS_26 against `__syscall_common' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index be01c2f58..398dfd1cf 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -69,6 +69,7 @@ KLIBC_ARCH = "${TARGET_ARCH}"
KLIBC_ARCH_aarch64 = "arm64"
KLIBC_ARCH_armeb = "arm"
KLIBC_ARCH_mipsel = "mips"
+KLIBC_ARCH_mips64el = "mips64"
KLIBC_ARCH_x86 = "i386"
KLIBC_ARCH_x86-64 = "x86_64"
KLIBC_ARCH_powerpc = "ppc"
@@ -78,4 +79,6 @@ THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
GCCPIE ?= ""
SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
SECURITY_LDFLAGS_mips = ""
+SECURITY_LDFLAGS_mipsel = ""
SECURITY_LDFLAGS_mips64 = ""
+SECURITY_LDFLAGS_mips64el = ""