mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 00:50:00 +00:00
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>
This commit is contained in:
@@ -69,6 +69,7 @@ KLIBC_ARCH = "${TARGET_ARCH}"
|
|||||||
KLIBC_ARCH_aarch64 = "arm64"
|
KLIBC_ARCH_aarch64 = "arm64"
|
||||||
KLIBC_ARCH_armeb = "arm"
|
KLIBC_ARCH_armeb = "arm"
|
||||||
KLIBC_ARCH_mipsel = "mips"
|
KLIBC_ARCH_mipsel = "mips"
|
||||||
|
KLIBC_ARCH_mips64el = "mips64"
|
||||||
KLIBC_ARCH_x86 = "i386"
|
KLIBC_ARCH_x86 = "i386"
|
||||||
KLIBC_ARCH_x86-64 = "x86_64"
|
KLIBC_ARCH_x86-64 = "x86_64"
|
||||||
KLIBC_ARCH_powerpc = "ppc"
|
KLIBC_ARCH_powerpc = "ppc"
|
||||||
@@ -78,4 +79,6 @@ THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
|
|||||||
GCCPIE ?= ""
|
GCCPIE ?= ""
|
||||||
SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
|
SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
|
||||||
SECURITY_LDFLAGS_mips = ""
|
SECURITY_LDFLAGS_mips = ""
|
||||||
|
SECURITY_LDFLAGS_mipsel = ""
|
||||||
SECURITY_LDFLAGS_mips64 = ""
|
SECURITY_LDFLAGS_mips64 = ""
|
||||||
|
SECURITY_LDFLAGS_mips64el = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user