[oe-commits] [meta-openembedded] 06/11: klibc: fix build for mipsel and mips64el with security flags enabled

git at git.openembedded.org git at git.openembedded.org
Tue Dec 4 18:01:21 UTC 2018


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit c144ff06e250a59852f77e1890d91704e4e7222d
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>
---
 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