From d8e71e8dd2a58be1fe254046cacff4a4251b2ee7 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 26 Aug 2020 13:42:57 -0500 Subject: [PATCH] linuxkm/Kbuild: disable objtool on AESNI asm objects -- they work in the kernel as-is, despite "unannotated intra-function call" and "BP used as a scratch register" warnings. --- linuxkm/Kbuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linuxkm/Kbuild b/linuxkm/Kbuild index f8509c83d..06b982758 100644 --- a/linuxkm/Kbuild +++ b/linuxkm/Kbuild @@ -40,3 +40,8 @@ ccflags-y = $(WOLFSSL_CFLAGS) -Wframe-larger-than=$(MAX_STACK_FRAME_SIZE) -mpref %/lkm_testcrypto.o: ccflags-y += -DNO_MAIN_DRIVER asflags-y := $(WOLFSSL_ASFLAGS) + +# these two _asms are kernel-compatible (they don't reference the pic-related _GLOBAL_OFFSET_TABLE_) +# but they still irritate objtool: "unannotated intra-function call" and "BP used as a scratch register" +%/aes_asm.o: OBJECT_FILES_NON_STANDARD := y +%/aes_gcm_asm.o: OBJECT_FILES_NON_STANDARD := y