mirror_zfs/module/icp/asm-x86_64/aes
Alexander Lobakin 73b8f700b6 icp: fix all !ENDBR objtool warnings in x86 Asm code
Currently, only Blake3 x86 Asm code has signs of being ENDBR-aware.
At least, under certain conditions it includes some header file and
uses some custom macro from there.
Linux has its own NOENDBR since several releases ago. It's defined
in the same <asm/linkage.h>, so currently <sys/asm_linkage.h>
already is provided with it.

Let's unify those two into one %ENDBR macro. At first, check if it's
present already. If so -- use Linux kernel version. Otherwise, try
to go that second way and use %_CET_ENDBR from <cet.h> if available.
If no, fall back to just empty definition.
This fixes a couple more 'relocations to !ENDBR' across the module.
And now that we always have the latest/actual ENDBR definition, use
it at the entrance of the few corresponding functions that objtool
still complains about. This matches the way how it's used in the
upstream x86 core Asm code.

Reviewed-by: Attila Fülöp <attila@fueloep.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Closes #14035
2022-11-04 11:25:56 -07:00
..
aes_aesni.S Fix objtool: missing int3 after ret warning 2022-06-27 14:19:43 -07:00
aes_amd64.S icp: fix all !ENDBR objtool warnings in x86 Asm code 2022-11-04 11:25:56 -07:00
aeskey.c codebase style improvements for OpenZFS 6459 port 2017-01-22 13:25:40 -08:00
aesopt.h Fix typos in modules/icp/ 2019-08-30 14:26:07 -07:00
aestab2.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
aestab.h Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
THIRDPARTYLICENSE.gladman Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
THIRDPARTYLICENSE.gladman.descrip Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
THIRDPARTYLICENSE.openssl Fix typos in modules/icp/ 2019-08-30 14:26:07 -07:00
THIRDPARTYLICENSE.openssl.descrip Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00