Remove --enable-stackguard-randomization (BZ #27872)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 19 May 2021 13:22:19 +0000 (10:22 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 19 May 2021 13:22:19 +0000 (10:22 -0300)
Last ENABLE_STACKGUARD_RANDOMIZE usage was removed by 4a103975c4.

config.h.in
configure
configure.ac

index 99036b887ffd508093a20a0792d383023ffd6bd9..d54c8c5d139fa0bbb556785a7aca8bde12f34441 100644 (file)
 /* Define if your compiler defaults to -msecure-plt mode on ppc.  */
 #undef HAVE_PPC_SECURE_PLT
 
-/* Define if __stack_chk_guard canary should be randomized at program startup.  */
-#undef ENABLE_STACKGUARD_RANDOMIZE
-
 /* Define if memory tagging support should be enabled.  */
 #undef USE_MTAG
 
index 4cc462613c9f9e18c4a9d859445b1fe6404209c1..5dde2ba3551eb084d1bfebdc3bd55f4e66c772f6 100755 (executable)
--- a/configure
+++ b/configure
@@ -770,7 +770,6 @@ enable_profile
 enable_static_pie
 enable_timezone_tools
 enable_hardcoded_path_in_tests
-enable_stackguard_randomization
 enable_hidden_plt
 enable_bind_now
 enable_stack_protector
@@ -1430,9 +1429,6 @@ Optional Features:
   --enable-hardcoded-path-in-tests
                           hardcode newly built glibc path in tests
                           [default=no]
-  --enable-stackguard-randomization
-                          initialize __stack_chk_guard canary with a random
-                          number at program start
   --disable-hidden-plt    do not hide internal function calls to avoid PLT
   --enable-bind-now       disable lazy relocations in DSOs
   --enable-stack-protector=[yes|no|all|strong]
@@ -3397,18 +3393,6 @@ fi
 
 
 
-# Check whether --enable-stackguard-randomization was given.
-if test "${enable_stackguard_randomization+set}" = set; then :
-  enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
-else
-  enable_stackguard_randomize=no
-fi
-
-if test "$enable_stackguard_randomize" = yes; then
-  $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
-
-fi
-
 # Check whether --enable-hidden-plt was given.
 if test "${enable_hidden_plt+set}" = set; then :
   enableval=$enable_hidden_plt; hidden=$enableval
index 64be29d87777bbede92507f25e8b484cafb0ae1b..19051b8ee0607c4b09fed939c4884501e8799914 100644 (file)
@@ -198,15 +198,6 @@ AC_ARG_ENABLE([hardcoded-path-in-tests],
              [hardcoded_path_in_tests=no])
 AC_SUBST(hardcoded_path_in_tests)
 
-AC_ARG_ENABLE([stackguard-randomization],
-             AS_HELP_STRING([--enable-stackguard-randomization],
-                            [initialize __stack_chk_guard canary with a random number at program start]),
-             [enable_stackguard_randomize=$enableval],
-             [enable_stackguard_randomize=no])
-if test "$enable_stackguard_randomize" = yes; then
-  AC_DEFINE(ENABLE_STACKGUARD_RANDOMIZE)
-fi
-
 AC_ARG_ENABLE([hidden-plt],
              AS_HELP_STRING([--disable-hidden-plt],
                             [do not hide internal function calls to avoid PLT]),