From a4a81b0abca15016229b6f893b498d15f94afc19 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 21 Jul 2018 11:49:53 -0700 Subject: [PATCH] riscv64: Disable ssp and fortify flags They result in linking errors, -fstack-protector-strong wants libssp libdrm errors when using -fstack-protector-strong drm@sha/xf86drmSL.c.o: relocation R_RISCV_HI20 against `__stack_chk_guard@@GLIBC_2.27' can not be used when making a shared object; recompile with -fPIC libdrm errors when using fortify options rm@sha/xf86drm.c.o(.text+0x3ce2): unresolvable R_RISCV_CALL relocation against symbol `strdup@@GLIBC_2.27' For now just disable the whole shebang Signed-off-by: Khem Raj --- conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/layer.conf b/conf/layer.conf index d0f4af7..463c307 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -12,7 +12,7 @@ BBFILE_PRIORITY_riscv-layer = "6" LAYERSERIES_COMPAT_riscv-layer = "sumo" # risc-v does not get along with pie for reasons in so far not looked into -SECURITY_CFLAGS_riscv64 = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" +SECURITY_CFLAGS_riscv64 = "" SECURITY_CFLAGS_pn-libgcc_riscv64 = "" GCCPIE_riscv64 = "" GLIBCPIE_riscv64 = ""