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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2018-07-21 11:49:53 -07:00
parent 09732c2049
commit a4a81b0abc

View file

@ -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 = ""