From: Alejandro Hernandez Samaniego Date: Sun, 19 May 2024 05:50:49 +0000 (-0600) Subject: tclibc-newlib: update security cflags override X-Git-Tag: uninative-4.6~540 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94a3459c77ad48caab42ca816d984fe467042ce3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git tclibc-newlib: update security cflags override It appears that it is no longer necessary to disable security cflags for newlib targets, with the exception of RISCV architectures where the linker does not support PIE Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Richard Purdie --- diff --git a/meta/conf/distro/include/tclibc-newlib.inc b/meta/conf/distro/include/tclibc-newlib.inc index 238b430e49d..34318b24549 100644 --- a/meta/conf/distro/include/tclibc-newlib.inc +++ b/meta/conf/distro/include/tclibc-newlib.inc @@ -42,6 +42,6 @@ TOOLCHAIN_HOST_TASK ?= "packagegroup-cross-canadian-${MACHINE} nativesdk-qemu na TOOLCHAIN_TARGET_TASK ?= "${LIBC_DEPENDENCIES}" TOOLCHAIN_NEED_CONFIGSITE_CACHE:remove = "zlib ncurses" -# disable pie security flags by default -SECURITY_CFLAGS:libc-newlib = "${SECURITY_NOPIE_CFLAGS}" -SECURITY_LDFLAGS:libc-newlib = "" +# disable pie security flags by default since RISCV linker doesnt support them +SECURITY_CFLAGS:libc-newlib:qemuriscv32 = "${SECURITY_NOPIE_CFLAGS}" +SECURITY_CFLAGS:libc-newlib:qemuriscv64 = "${SECURITY_NOPIE_CFLAGS}"