[oe-commits] [meta-openembedded] 19/47: klibc: fix build for mipsel and mips64el with security flags enabled
git at git.openembedded.org
git at git.openembedded.org
Tue Feb 19 15:21:15 UTC 2019
This is an automated email from the git hooks/post-receive script.
armin_kuster pushed a commit to branch thud-next
in repository meta-openembedded.
commit 61d159eb11cdef3d24a7aa58d07fc1e1b4f9191f
Author: Andrea Adami <andrea.adami at gmail.com>
AuthorDate: Tue Dec 4 16:00:57 2018 +0100
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 at gmail.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
meta-initramfs/recipes-devtools/klibc/klibc.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index be01c2f..398dfd1 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 = ""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list