diff options
author | Attila Fülöp <[email protected]> | 2021-04-17 22:11:18 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-17 13:11:18 -0700 |
commit | 7c9702e2a7c04b0acf5fd51274daf25bd286c920 (patch) | |
tree | 5fe465e3e9519acf4e48a7192dbb72c1fbbdc657 /module | |
parent | a31ac10185e60f4806139e7c2b02afada12ecf03 (diff) |
ICP: Silence objtool "stack pointer realignment" warnings
Objtool requires the use of a DRAP register while aligning the
stack. Since a DRAP register is a gcc concept and we are
notoriously low on registers in the crypto code, it's not worth
the effort to mimic gcc generated stack realignment.
We simply silence the warning by adding the offending object files
to OBJECT_FILES_NON_STANDARD.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Attila Fülöp <[email protected]>
Closes #6950
Closes #11914
Diffstat (limited to 'module')
-rw-r--r-- | module/icp/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/icp/Makefile.in b/module/icp/Makefile.in index 09ffb6fa4..858c5a610 100644 --- a/module/icp/Makefile.in +++ b/module/icp/Makefile.in @@ -69,6 +69,12 @@ $(MODULE)-$(CONFIG_X86) += algs/aes/aes_impl_x86-64.o # utility tries to interpret them as opcodes and obviously fails doing so. OBJECT_FILES_NON_STANDARD_aesni-gcm-x86_64.o := y OBJECT_FILES_NON_STANDARD_ghash-x86_64.o := y +# Suppress objtool "unsupported stack pointer realignment" warnings. We are +# not using a DRAP register while aligning the stack to a 64 byte boundary. +# See #6950 for the reasoning. +OBJECT_FILES_NON_STANDARD_sha1-x86_64.o := y +OBJECT_FILES_NON_STANDARD_sha256_impl.o := y +OBJECT_FILES_NON_STANDARD_sha512_impl.o := y ICP_DIRS = \ api \ |