isa-l/include
H.J. Lu cd888f01a4 x86: Add ENDBR32/ENDBR64 at function entries for Intel CET
To support Intel CET, all indirect branch targets must start with
ENDBR32/ENDBR64.  Here is a patch to define endbranch and add it to
function entries in x86 assembly codes which are indirect branch
targets as discovered by running testsuite on Intel CET machine and
visual inspection.

Verified with

$ CC="gcc -Wl,-z,cet-report=error -fcf-protection" CXX="g++ -Wl,-z,cet-report=error -fcf-protection" .../configure x86_64-linux
$ make -j8
$ make -j8 check

with both nasm and yasm on both CET and non-CET machines.

Change-Id: I9822578e7294fb5043a64ab7de5c41de81a7d337
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2020-05-26 09:16:49 -07:00
..
aarch64_multibinary.h multi-binary:Add microarchitecture id reader 2020-03-30 09:20:29 -07:00
crc64.h Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
crc.h crc: Add t10dif+copy function 2017-12-18 15:59:17 -07:00
erasure_code.h doc: Fix missing description of gf_matrix_inverse 2019-12-13 16:24:05 -07:00
gf_vect_mul.h build: Add multi-arch autoconf support 2018-12-10 13:40:55 -07:00
igzip_lib.h igzip: export isal_adler32 2019-02-10 13:37:52 -07:00
mem_routines.h mem: Add zero detect memory functions 2018-09-25 14:33:31 -07:00
multibinary.asm x86: Add ENDBR32/ENDBR64 at function entries for Intel CET 2020-05-26 09:16:49 -07:00
raid.h build: Add multi-arch autoconf support 2018-12-10 13:40:55 -07:00
reg_sizes.asm x86: Add ENDBR32/ENDBR64 at function entries for Intel CET 2020-05-26 09:16:49 -07:00
test.h test: Fix c99 warn in perf helper functions 2019-03-18 15:07:47 -07:00
types.h types.h: remove [U]INT{8,16,32,64} typedefs 2018-03-29 09:35:25 -07:00
unaligned.h igzip: Remove unaligned stores 2019-03-07 09:27:50 -07:00