grub-devel
[Top][All Lists]
Advanced

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

[PATCH] configure.ac: warn if stack-protector not allowed


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

Previous version of configure.ac 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 <nvinson234@gmail.com>
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 57fb70945..9bdc102b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1349,7 +1349,8 @@ if test "x$enable_stack_protector" = xno; then
     TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
   fi
 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)])
 else
-- 
2.35.1




reply via email to

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