Go to file
Marek Polacek 258d7149f9 configure: Implement --enable-host-bind-now
As promised in the --enable-host-pie patch, this patch adds another
configure option, --enable-host-bind-now, which adds -z now when linking
the compiler executables in order to extend hardening.  BIND_NOW with RELRO
allows the GOT to be marked RO; this prevents GOT modification attacks.

This option does not affect linking of target libraries; you can use
LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now to enable RELRO/BIND_NOW.

c++tools/ChangeLog:

	* configure.ac (--enable-host-bind-now): New check.
	* configure: Regenerate.

gcc/ChangeLog:

	* configure.ac (--enable-host-bind-now): New check.  Add
	-Wl,-z,now to LD_PICFLAG if --enable-host-bind-now.
	* configure: Regenerate.
	* doc/install.texi: Document --enable-host-bind-now.

lto-plugin/ChangeLog:

	* configure.ac (--enable-host-bind-now): New check.  Link with
	-z,now.
	* configure: Regenerate.
2022-11-22 20:47:49 -05:00
INSTALL
c++tools configure: Implement --enable-host-bind-now 2022-11-22 20:47:49 -05:00
config Daily bump. 2022-11-15 08:32:29 +00:00
contrib Daily bump. 2022-11-22 00:17:49 +00:00
fixincludes configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
gcc configure: Implement --enable-host-bind-now 2022-11-22 20:47:49 -05:00
gnattools Daily bump. 2022-09-01 00:17:39 +00:00
gotools Daily bump. 2022-08-31 00:16:45 +00:00
include Daily bump. 2022-11-16 00:17:09 +00:00
intl configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
libada Daily bump. 2022-08-26 00:16:21 +00:00
libatomic Daily bump. 2022-11-17 00:16:52 +00:00
libbacktrace Daily bump. 2022-10-13 00:17:37 +00:00
libcc1 Daily bump. 2022-11-02 00:17:38 +00:00
libcody configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
libcpp configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
libdecnumber configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
libffi changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libgcc changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libgfortran Daily bump. 2022-10-13 00:17:37 +00:00
libgo runtime: use _libgo_off_t_type when calling C mmap 2022-10-27 17:12:57 -07:00
libgomp Daily bump. 2022-11-22 00:17:49 +00:00
libiberty configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
libitm changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libobjc changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libphobos changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libquadmath changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libsanitizer changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
libssp Daily bump. 2022-10-13 00:17:37 +00:00
libstdc++-v3 Daily bump. 2022-11-23 00:17:30 +00:00
libvtv changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
lto-plugin configure: Implement --enable-host-bind-now 2022-11-22 20:47:49 -05:00
maintainer-scripts Daily bump. 2022-11-15 08:32:29 +00:00
zlib configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
.dir-locals.el dir-locals: Use https for bug references 2021-07-20 11:40:34 +01:00
.gitattributes Add *.md diff=md. 2020-01-15 14:29:53 +01:00
.gitignore .gitignore: do not ignore config.h 2022-07-19 17:07:04 +03:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog changelog: Fix extra space after tab. 2022-11-21 10:13:44 +01:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS Update email address 2022-10-31 11:15:45 +00:00
Makefile.def configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
Makefile.in configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
Makefile.tpl configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
README
ar-lib
compile
config-ml.in config-ml.in: Suppress output from multi-do recipes 2020-11-09 14:28:37 +00:00
config.guess config.sub, config.guess : Import upstream 2021-01-25. 2021-02-23 17:21:10 +08:00
config.rpath
config.sub config.sub: change mode to 755. 2021-12-21 09:10:57 +01:00
configure configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
configure.ac configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
depcomp
install-sh
libtool-ldflags
libtool.m4 Generic configury support for shared libs on VxWorks 2022-10-11 07:31:07 +00:00
ltgcc.m4
ltmain.sh Do not use HAVE_DOS_BASED_FILE_SYSTEM for Cygwin. 2020-04-17 09:22:51 +02:00
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.