[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] warn if stack-protector not allowed

From: Nicholas Vinson
Subject: [PATCH] warn if stack-protector not allowed
Date: Tue, 14 Jun 2022 18:19:00 -0400

Previous version of would error out when
--enable-stack-protector was given and a selected GRUB platform did not
support the flag.  The new behavior is to warn that the flag is not
supported and force disable it for that platform.

Signed-off-by: Nicholas Vinson <>
--- | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ b/
index 57fb70945..9bdc102b2 100644
--- a/
+++ b/
@@ -1349,7 +1349,8 @@ if test "x$enable_stack_protector" = xno; then
     TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
 elif test "x$platform" != xefi; then
-  AC_MSG_ERROR([--enable-stack-protector is only supported on EFI platforms])
+  AC_MSG_WARN([--enable-stack-protector is only supported on EFI platforms])
+  enable_stack_protector=no
 elif test "x$ssp_global_possible" != xyes; then
   AC_MSG_ERROR([--enable-stack-protector is not supported (compiler doesn't 
support -mstack-protector-guard=global)])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]