]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "configure: Implement --enable-host-bind-now"
authorMarek Polacek <polacek@redhat.com>
Wed, 23 Nov 2022 02:10:19 +0000 (21:10 -0500)
committerMarek Polacek <polacek@redhat.com>
Wed, 23 Nov 2022 02:10:19 +0000 (21:10 -0500)
This reverts commit 258d7149f92f19380c9f7763618d62408c064e60.

c++tools/configure
c++tools/configure.ac
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
lto-plugin/configure
lto-plugin/configure.ac

index 006efe07b35432c67479ccc253dbc1f8cdd52120..88087009383998664596de2673905dc543a57c5c 100755 (executable)
@@ -628,7 +628,6 @@ EGREP
 GREP
 CXXCPP
 LD_PICFLAG
-enable_host_bind_now
 PICFLAG
 MAINTAINER
 CXX_AUX_TOOLS
@@ -703,7 +702,6 @@ enable_maintainer_mode
 enable_checking
 enable_default_pie
 enable_host_pie
-enable_host_bind_now
 with_gcc_major_version_only
 '
       ac_precious_vars='build_alias
@@ -1338,7 +1336,6 @@ Optional Features:
                           yes,no,all,none,release.
   --enable-default-pie    enable Position Independent Executable as default
   --enable-host-pie       build host code as PIE
-  --enable-host-bind-now  link host code as BIND_NOW
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -3010,14 +3007,6 @@ fi
 
 
 
-# Enable --enable-host-bind-now
-# Check whether --enable-host-bind-now was given.
-if test "${enable_host_bind_now+set}" = set; then :
-  enableval=$enable_host_bind_now; LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
-fi
-
-
-
 
 # Check if O_CLOEXEC is defined by fcntl
 
index d3f23f66f00b84eb1ed908414bb72c102050a03e..1e42689f2ebde47da462f3379d3e215c60ba43ba 100644 (file)
@@ -110,13 +110,6 @@ AC_ARG_ENABLE(host-pie,
                [build host code as PIE])],
 [PICFLAG=-fPIE; LD_PICFLAG=-pie], [])
 AC_SUBST(PICFLAG)
-
-# Enable --enable-host-bind-now
-AC_ARG_ENABLE(host-bind-now,
-[AS_HELP_STRING([--enable-host-bind-now],
-       [link host code as BIND_NOW])],
-[LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"], [])
-AC_SUBST(enable_host_bind_now)
 AC_SUBST(LD_PICFLAG)
 
 # Check if O_CLOEXEC is defined by fcntl
index c45f5367d197c39de2a30f8697c22468b5f26525..f631830386d8b58bae91698dfa206cc9fe87cc68 100755 (executable)
@@ -635,7 +635,6 @@ CET_HOST_FLAGS
 LD_PICFLAG
 PICFLAG
 enable_default_pie
-enable_host_bind_now
 enable_host_pie
 enable_host_shared
 enable_plugin
@@ -1027,7 +1026,6 @@ enable_version_specific_runtime_libs
 enable_plugin
 enable_host_shared
 enable_host_pie
-enable_host_bind_now
 enable_libquadmath_support
 with_linker_hash_style
 with_diagnostics_color
@@ -1791,7 +1789,6 @@ Optional Features:
   --enable-plugin         enable plugin support
   --enable-host-shared    build host code as shared libraries
   --enable-host-pie       build host code as PIE
-  --enable-host-bind-now  link host code as BIND_NOW
   --disable-libquadmath-support
                           disable libquadmath support for Fortran
   --enable-default-pie    enable Position Independent Executable as default
@@ -19715,7 +19712,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 19730 "configure"
+#line 19727 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -19821,7 +19818,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 19836 "configure"
+#line 19833 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
 
 
 
-# Enable --enable-host-bind-now
-# Check whether --enable-host-bind-now was given.
-if test "${enable_host_bind_now+set}" = set; then :
-  enableval=$enable_host_bind_now;
-fi
-
-
-
 # Check whether --enable-libquadmath-support was given.
 if test "${enable_libquadmath_support+set}" = set; then :
   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
@@ -32157,8 +32146,6 @@ else
   PICFLAG=
 fi
 
-
-
 if test x$enable_host_pie = xyes; then
   LD_PICFLAG=-pie
 elif test x$gcc_cv_no_pie = xyes; then
@@ -32167,9 +32154,6 @@ else
   LD_PICFLAG=
 fi
 
-if test x$enable_host_bind_now = xyes; then
-  LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
-fi
 
 
 
index da95b611c6643af20e76fff37860362e14fb9e94..f5b23b92df1fcb7f6de55e090a4a51296e0cbb80 100644 (file)
@@ -7373,12 +7373,6 @@ AC_ARG_ENABLE(host-pie,
                [build host code as PIE])])
 AC_SUBST(enable_host_pie)
 
-# Enable --enable-host-bind-now
-AC_ARG_ENABLE(host-bind-now,
-[AS_HELP_STRING([--enable-host-bind-now],
-               [link host code as BIND_NOW])])
-AC_SUBST(enable_host_bind_now)
-
 AC_ARG_ENABLE(libquadmath-support,
 [AS_HELP_STRING([--disable-libquadmath-support],
   [disable libquadmath support for Fortran])],
@@ -7520,8 +7514,6 @@ else
   PICFLAG=
 fi
 
-AC_SUBST([PICFLAG])
-
 if test x$enable_host_pie = xyes; then
   LD_PICFLAG=-pie
 elif test x$gcc_cv_no_pie = xyes; then
@@ -7530,10 +7522,7 @@ else
   LD_PICFLAG=
 fi
 
-if test x$enable_host_bind_now = xyes; then
-  LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
-fi
-
+AC_SUBST([PICFLAG])
 AC_SUBST([LD_PICFLAG])
 
 # Enable Intel CET on Intel CET enabled host if jit is enabled.
index ac36e9aff4c1a80b8d43ee275e17cfee99053de4..b91fbe0216c875ed4cb94be62511d4013aed913d 100644 (file)
@@ -1046,12 +1046,6 @@ protection against Return Oriented Programming (ROP) attacks.
 in which case @option{-fPIC} is used when compiling, and @option{-pie} when
 linking.
 
-@item --enable-host-bind-now
-Specify that the @emph{host} executables should be linked with the option
-@option{-Wl,-z,now}, which means that the dynamic linker will resolve all
-symbols when the executables are started, and that in turn allows RELRO to
-mark the GOT read-only, resulting in better security.
-
 @item @anchor{with-gnu-as}--with-gnu-as
 Specify that the compiler should assume that the
 assembler it finds is the GNU assembler.  However, this does not modify
index 3467defd416451613f86fda288755fc7cb94e054..d522bd24c9575910b31c717d8f3a98fa6a1083af 100755 (executable)
@@ -663,7 +663,6 @@ accel_dir_suffix
 gcc_build_dir
 CET_HOST_FLAGS
 ac_lto_plugin_ldflags
-enable_host_bind_now
 ac_lto_plugin_warn_cflags
 EGREP
 GREP
@@ -779,7 +778,6 @@ enable_maintainer_mode
 with_libiberty
 enable_dependency_tracking
 enable_largefile
-enable_host_bind_now
 enable_cet
 with_gcc_major_version_only
 enable_shared
@@ -1427,7 +1425,6 @@ Optional Features:
   --disable-dependency-tracking
                           speeds up one-time build
   --disable-largefile     omit support for large files
-  --enable-host-bind-now  link host code as BIND_NOW
   --enable-cet            enable Intel CET in host libraries [default=auto]
   --enable-shared[=PKGS]  build shared libraries [default=yes]
   --enable-static[=PKGS]  build static libraries [default=yes]
@@ -5672,19 +5669,6 @@ if test "x$have_static_libgcc" = xyes; then
    ac_lto_plugin_ldflags="-Wc,-static-libgcc"
 fi
 
-# Enable --enable-host-bind-now
-# Check whether --enable-host-bind-now was given.
-if test "${enable_host_bind_now+set}" = set; then :
-  enableval=$enable_host_bind_now;
-fi
-
-
-
-if test x$enable_host_bind_now = xyes; then
-  ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
-fi
-
-
 
  # Check whether --enable-cet was given.
 if test "${enable_cet+set}" = set; then :
@@ -12150,7 +12134,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12165 "configure"
+#line 12137 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12256,7 +12240,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12271 "configure"
+#line 12243 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 84f2a60b4800c4c45c37f958bc3113dbaa173306..0a7202782ae432373e94757208797d52ba50c0cc 100644 (file)
@@ -25,17 +25,6 @@ LDFLAGS="$saved_LDFLAGS"
 if test "x$have_static_libgcc" = xyes; then
    ac_lto_plugin_ldflags="-Wc,-static-libgcc"
 fi
-
-# Enable --enable-host-bind-now
-AC_ARG_ENABLE(host-bind-now,
-[AS_HELP_STRING([--enable-host-bind-now],
-       [link host code as BIND_NOW])])
-AC_SUBST(enable_host_bind_now)
-
-if test x$enable_host_bind_now = xyes; then
-  ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
-fi
-
 AC_SUBST(ac_lto_plugin_ldflags)
 
 GCC_CET_HOST_FLAGS(CET_HOST_FLAGS)