diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2018-12-04 16:00:57 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-12-04 17:51:35 -0800 |
commit | 981aa87a2350f7838e0573fde2aab7dc7670080e (patch) | |
tree | 816a72d79178032134de1657f9e269efcd87e4a3 /meta-initramfs/recipes-devtools/klibc | |
parent | 04df72ad372d7148068d731a306806537a8d195b (diff) | |
download | meta-openembedded-981aa87a2350f7838e0573fde2aab7dc7670080e.tar.gz |
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>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 3 |
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}" | |||
69 | KLIBC_ARCH_aarch64 = "arm64" | 69 | KLIBC_ARCH_aarch64 = "arm64" |
70 | KLIBC_ARCH_armeb = "arm" | 70 | KLIBC_ARCH_armeb = "arm" |
71 | KLIBC_ARCH_mipsel = "mips" | 71 | KLIBC_ARCH_mipsel = "mips" |
72 | KLIBC_ARCH_mips64el = "mips64" | ||
72 | KLIBC_ARCH_x86 = "i386" | 73 | KLIBC_ARCH_x86 = "i386" |
73 | KLIBC_ARCH_x86-64 = "x86_64" | 74 | KLIBC_ARCH_x86-64 = "x86_64" |
74 | KLIBC_ARCH_powerpc = "ppc" | 75 | KLIBC_ARCH_powerpc = "ppc" |
@@ -78,4 +79,6 @@ THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})" | |||
78 | GCCPIE ?= "" | 79 | GCCPIE ?= "" |
79 | SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}" | 80 | SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}" |
80 | SECURITY_LDFLAGS_mips = "" | 81 | SECURITY_LDFLAGS_mips = "" |
82 | SECURITY_LDFLAGS_mipsel = "" | ||
81 | SECURITY_LDFLAGS_mips64 = "" | 83 | SECURITY_LDFLAGS_mips64 = "" |
84 | SECURITY_LDFLAGS_mips64el = "" | ||