zfs/module/icp/asm-x86_64/modes
Alexander Lobakin ab22031d79 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-12-01 12:39:39 -08:00
..
THIRDPARTYLICENSE.cryptogams ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.cryptogams.descrip ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.openssl ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
THIRDPARTYLICENSE.openssl.descrip ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
aesni-gcm-x86_64.S icp: fix all !ENDBR objtool warnings in x86 Asm code 2022-12-01 12:39:39 -08:00
gcm_pclmulqdq.S Fix objtool: missing int3 after ret warning 2022-07-27 13:38:56 -07:00
ghash-x86_64.S icp: fix all !ENDBR objtool warnings in x86 Asm code 2022-12-01 12:39:39 -08:00