From c8b3164190485ca2999e5efadbc20a3418c7c692 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 24 Aug 2017 12:56:34 -0700 Subject: rmc: Add -fno-stack-protector Some toolchains may have configured itself with ssp in such cases just removing -fstack-protector-strong is not enough to disable ssp, additionally disabling it on cmdline is required too Signed-off-by: Khem Raj Signed-off-by: Saul Wold --- common/recipes-bsp/rmc/rmc-efi.bb | 1 + common/recipes-bsp/rmc/rmc.bb | 1 + 2 files changed, 2 insertions(+) (limited to 'common/recipes-bsp') diff --git a/common/recipes-bsp/rmc/rmc-efi.bb b/common/recipes-bsp/rmc/rmc-efi.bb index ea096197..2a1c9a98 100644 --- a/common/recipes-bsp/rmc/rmc-efi.bb +++ b/common/recipes-bsp/rmc/rmc-efi.bb @@ -21,6 +21,7 @@ EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" +SECURITY_CFLAGS_append_class-target = " -fno-stack-protector" python () { ccargs = d.getVar('TUNE_CCARGS').split() diff --git a/common/recipes-bsp/rmc/rmc.bb b/common/recipes-bsp/rmc/rmc.bb index fb0d1737..8797644b 100644 --- a/common/recipes-bsp/rmc/rmc.bb +++ b/common/recipes-bsp/rmc/rmc.bb @@ -28,6 +28,7 @@ EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" +SECURITY_CFLAGS_append_class-target = " -fno-stack-protector" do_compile_class-target() { oe_runmake -- cgit v1.2.3-54-g00ecf