]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove enable_executable_check as it's not needed anymore.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 7 Jun 2013 14:02:16 +0000 (16:02 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 7 Jun 2013 14:02:16 +0000 (16:02 +0200)
Reported by: dougray.

ChangeLog
acinclude.m4
config.h.in
configure.ac

index 7a8391789227589908f59802e550e6581f118566..28d3e41c9716cf7af47414f00b0974c66c421457 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Remove enable_executable_check as it's not needed anymore.
+       Reported by: dougray.
+
 2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
index 49a1a75d1b68190eeb0f7994b764d75dcfe02f5b..6242fa69923ef1c21a1457eee88726f966f787d0 100644 (file)
@@ -313,32 +313,6 @@ else
 fi
 ])
 
-dnl Check if the C compiler generates calls to `__enable_execute_stack()'.
-AC_DEFUN([grub_CHECK_ENABLE_EXECUTE_STACK],[
-AC_MSG_CHECKING([whether `$CC' generates calls to `__enable_execute_stack()'])
-AC_LANG_CONFTEST([AC_LANG_SOURCE([[
-void f (int (*p) (void));
-void g (int i)
-{
-  int nestedfunc (void) { return i; }
-  f (nestedfunc);
-}
-]])])
-if AC_TRY_COMMAND([${CC-cc} ${CFLAGS} -S conftest.c]) && test -s conftest.s; then
-  true
-else
-  AC_MSG_ERROR([${CC-cc} failed to produce assembly code])
-fi
-if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
-  NEED_ENABLE_EXECUTE_STACK=1
-  AC_MSG_RESULT([yes])
-else
-  NEED_ENABLE_EXECUTE_STACK=0
-  AC_MSG_RESULT([no])
-fi
-rm -f conftest*
-])
-
 \f
 dnl Check if the C compiler supports `-fstack-protector'.
 AC_DEFUN([grub_CHECK_STACK_PROTECTOR],[
index 065db78b866c6ac720a7b5a07e889f72529064e1..160e3717ec6003b41976da8b81fc735987eb6266 100644 (file)
@@ -39,8 +39,6 @@
 #define GRUB_BOOT_DIR_NAME "@bootdirname@"
 /* Default grub directory name */
 #define GRUB_DIR_NAME "@grubdirname@"
-/* Define to 1 if GCC generates calls to __enable_execute_stack().  */
-#define NEED_ENABLE_EXECUTE_STACK @NEED_ENABLE_EXECUTE_STACK@
 /* Define to 1 if GCC generates calls to __register_frame_info().  */
 #define NEED_REGISTER_FRAME_INFO @NEED_REGISTER_FRAME_INFO@
 
index 1c05a11f12d6063009cb3564f1e7456e64ec35d2..2f7b8b3c4df9ccc60137060c2510863cdc7abd31 100644 (file)
@@ -1137,7 +1137,6 @@ AC_SUBST(BSS_START_SYMBOL)
 AC_SUBST(END_SYMBOL)
 AC_SUBST(PACKAGE)
 AC_SUBST(VERSION)
-AC_SUBST(NEED_ENABLE_EXECUTE_STACK)
 AC_SUBST(NEED_REGISTER_FRAME_INFO)
 
 #