gcc/libgcc
Igor Tsimbalist 1ecae1fc23 Enable building libgcc with CET options.
Enable building libgcc with CET options by default on Linux/x86 if
binutils supports CET v2.0.  It can be disabled with --disable-cet.
It is an error to configure GCC with --enable-cet if bintuiils
doesn't support CET v2.0.

ENDBR instruction is added to __morestack_large_model since it is
called indirectly.

2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>

config/
	* cet.m4: New file.

gcc/
	* config.gcc (extra_headers): Add cet.h for x86 targets.
	* config/i386/cet.h: New file.
	* doc/install.texi: Add --enable-cet/--disable-cet.

libgcc/
	* Makefile.in (configure_deps): Add $(srcdir)/../config/cet.m4.
	(CET_FLAGS): New.
	* config/i386/morestack.S: Include <cet.h>.
	(__morestack_large_model): Add _CET_ENDBR at function entrance.
	* config/i386/resms64.h: Include <cet.h>.
	* config/i386/resms64f.h: Likewise.
	* config/i386/resms64fx.h: Likewise.
	* config/i386/resms64x.h: Likewise.
	* config/i386/savms64.h: Likewise.
	* config/i386/savms64f.h: Likewise.
	* config/i386/t-linux (HOST_LIBGCC2_CFLAGS): Add $(CET_FLAGS).
	(CRTSTUFF_T_CFLAGS): Likewise.
	* configure.ac: Include ../config/cet.m4.
	Set and substitute CET_FLAGS.
	* configure: Regenerated.

From-SVN: r254868
2017-11-17 14:34:39 +01:00
..
config Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
soft-fp
ChangeLog Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
config.host Adapt Solaris 12 references 2017-11-14 18:31:01 +00:00
config.in PR target/82196 addendum: Fix Darwin build breakage and test FAILS on Solaris 2017-09-23 11:02:54 +00:00
configure Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
configure.ac Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
crtstuff.c
dfp-bit.c
dfp-bit.h
divmod.c
empty.mk
emutls.c
enable-execute-stack-empty.c
enable-execute-stack-mprotect.c
find-symver.awk
fixed-bit.c
fixed-bit.h
fixed-obj.mk
floatunsidf.c
floatunsisf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsitf.c
floatunsixf.c
fp-bit.c
fp-bit.h
gbl-ctors.h
gcov.h
gen-fixed.sh
generic-morestack-thread.c
generic-morestack.c
generic-morestack.h Update copyright years. 2017-01-01 13:07:43 +01:00
gstdint.h dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. 2008-06-11 00:43:09 +01:00
gthr-posix.h
gthr-single.h
gthr.h
libgcc2.c re PR target/82274 (__builtin_mul_overflow fails to detect overflow for int64_t when compiled with -m32) 2017-10-13 19:19:12 +02:00
libgcc2.h
libgcc-std.ver.in
libgcov-driver-system.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov-driver.c
libgcov-interface.c
libgcov-merge.c
libgcov-profiler.c Speed-up indirect-call instrumentation 2017-06-09 12:54:53 +00:00
libgcov-util.c
libgcov.h
Makefile.in Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
memcmp.c
memcpy.c
memmove.c
memset.c
mkheader.sh
mkmap-flat.awk
mkmap-symver.awk
offloadstuff.c
shared-object.mk
siditi-object.mk
static-object.mk
sync.c Update copyright years. 2017-01-01 13:07:43 +01:00
udivmod.c
udivmodsi4.c
unwind-arm-common.inc
unwind-c.c
unwind-compat.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-compat.h
unwind-dw2-fde-compat.c
unwind-dw2-fde-dip.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c
unwind-dw2.h
unwind-generic.h
unwind-pe.h
unwind-seh.c
unwind-sjlj.c
unwind.inc Update copyright years. 2017-01-01 13:07:43 +01:00
vtv_end_preinit.c
vtv_end.c
vtv_start_preinit.c
vtv_start.c