gcc/c++tools
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
..
ChangeLog Daily bump. 2022-03-19 00:16:22 +00:00
config.h.in c++tools, configury: Configure with C++; test checking status [PR98821]. 2021-07-21 13:40:17 +01:00
configure configure: Implement --enable-host-bind-now 2022-11-22 20:47:49 -05:00
configure.ac configure: Implement --enable-host-bind-now 2022-11-22 20:47:49 -05:00
Makefile.in configure: Implement --enable-host-pie 2022-11-22 20:32:18 -05:00
resolver.cc Update copyright years. 2022-01-03 10:42:10 +01:00
resolver.h Update copyright years. 2022-01-03 10:42:10 +01:00
server.cc c++tools: Work around a BSD bug in getaddrinfo(). 2022-03-18 15:23:49 +00:00