diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2018-03-27 17:18:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2018-03-27 10:18:51 -0700 |
commit | 6514899f3110f618f60066dca796c327ef20e9fa (patch) | |
tree | 74c73da032e30d770b72cef8e23b63c614e53b74 /libcpp | |
parent | ae0c28bb271ab63aef76e77eacf57bbc23a45564 (diff) | |
download | gcc-6514899f3110f618f60066dca796c327ef20e9fa.zip gcc-6514899f3110f618f60066dca796c327ef20e9fa.tar.gz gcc-6514899f3110f618f60066dca796c327ef20e9fa.tar.bz2 |
i386: Insert ENDBR to trampoline for -fcf-protection=branch -mibt
When -fcf-protection=branch -mibt are used, we need to insert ENDBR
to trampoline. TRAMPOLINE_SIZE is creased by 4 bytes to accommodate
4-byte ENDBR instruction.
gcc/
PR target/85044
* config/i386/i386.c (ix86_trampoline_init): Insert ENDBR for
-fcf-protection=branch -mibt.
* config/i386/i386.h (TRAMPOLINE_SIZE): Increased by 4 bytes.
gcc/testsuite/
PR target/85044
* gcc.target/i386/pr85044.c: New test.
From-SVN: r258897
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions