mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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 <behlendorf1@llnl.gov> Signed-off-by: Attila Fülöp <attila@fueloep.org> Closes #6950 Closes #11914
This commit is contained in:
parent
a31ac10185
commit
7c9702e2a7
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user