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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| acinclude.m4 | Loading commit data... | |
| acx.m4 | Loading commit data... | |
| asmcfi.m4 | Loading commit data... | |
| ax_check_define.m4 | Loading commit data... | |
| bitfields.m4 | Loading commit data... | |
| bootstrap-O1.mk | Loading commit data... | |
| bootstrap-O3.mk | Loading commit data... | |
| bootstrap-asan.mk | Loading commit data... | |
| bootstrap-cet.mk | Loading commit data... | |
| bootstrap-debug-big.mk | Loading commit data... | |
| bootstrap-debug-ckovw.mk | Loading commit data... | |
| bootstrap-debug-lean.mk | Loading commit data... | |
| bootstrap-debug-lib.mk | Loading commit data... | |
| bootstrap-debug.mk | Loading commit data... | |
| bootstrap-lto-noplugin.mk | Loading commit data... | |
| bootstrap-lto.mk | Loading commit data... | |
| bootstrap-mpx.mk | Loading commit data... | |
| bootstrap-time.mk | Loading commit data... | |
| bootstrap-ubsan.mk | Loading commit data... | |
| cet.m4 | Loading commit data... | |
| codeset.m4 | Loading commit data... | |
| depstand.m4 | Loading commit data... | |
| dfp.m4 | Loading commit data... | |
| elf.m4 | Loading commit data... | |
| enable.m4 | Loading commit data... | |
| extensions.m4 | Loading commit data... | |
| futex.m4 | Loading commit data... | |
| gc++filt.m4 | Loading commit data... | |
| gcc-plugin.m4 | Loading commit data... | |
| gettext-sister.m4 | Loading commit data... | |
| gettext.m4 | Loading commit data... | |
| glibc21.m4 | Loading commit data... | |
| gthr.m4 | Loading commit data... | |
| gxx-include-dir.m4 | Loading commit data... | |
| hwcaps.m4 | Loading commit data... | |
| iconv.m4 | Loading commit data... | |
| intdiv0.m4 | Loading commit data... | |
| inttypes-pri.m4 | Loading commit data... | |
| inttypes.m4 | Loading commit data... | |
| inttypes_h.m4 | Loading commit data... | |
| isl.m4 | Loading commit data... | |
| largefile.m4 | Loading commit data... | |
| lcmessage.m4 | Loading commit data... | |
| ld-symbolic.m4 | Loading commit data... | |
| lead-dot.m4 | Loading commit data... | |
| lib-ld.m4 | Loading commit data... | |
| lib-link.m4 | Loading commit data... | |
| lib-prefix.m4 | Loading commit data... | |
| libstdc++-raw-cxx.m4 | Loading commit data... | |
| lthostflags.m4 | Loading commit data... | |
| math.m4 | Loading commit data... | |
| mh-alpha-linux | Loading commit data... | |
| mh-cygwin | Loading commit data... | |
| mh-darwin | Loading commit data... | |
| mh-djgpp | Loading commit data... | |
| mh-mingw | Loading commit data... | |
| mh-pa | Loading commit data... | |
| mh-pa-hpux10 | Loading commit data... | |
| mh-ppc-aix | Loading commit data... | |
| mmap.m4 | Loading commit data... | |
| mt-alphaieee | Loading commit data... | |
| mt-android | Loading commit data... | |
| mt-d30v | Loading commit data... | |
| mt-gnu | Loading commit data... | |
| mt-mips-elfoabi | Loading commit data... | |
| mt-mips-gnu | Loading commit data... | |
| mt-mips16-compat | Loading commit data... | |
| mt-nios2-elf | Loading commit data... | |
| mt-ospace | Loading commit data... | |
| mt-sde | Loading commit data... | |
| mt-spu | Loading commit data... | |
| multi.m4 | Loading commit data... | |
| nls.m4 | Loading commit data... | |
| no-executables.m4 | Loading commit data... | |
| override.m4 | Loading commit data... | |
| picflag.m4 | Loading commit data... | |
| plugins.m4 | Loading commit data... | |
| po.m4 | Loading commit data... | |
| proginstall.m4 | Loading commit data... | |
| progtest.m4 | Loading commit data... | |
| sjlj.m4 | Loading commit data... | |
| stdint.m4 | Loading commit data... | |
| stdint_h.m4 | Loading commit data... | |
| target-posix | Loading commit data... | |
| tcl.m4 | Loading commit data... | |
| tls.m4 | Loading commit data... | |
| uintmax_t.m4 | Loading commit data... | |
| ulonglong.m4 | Loading commit data... | |
| unwind_ipinfo.m4 | Loading commit data... | |
| warnings.m4 | Loading commit data... | |
| weakref.m4 | Loading commit data... | |
| zlib.m4 | Loading commit data... |