x86/crypto: Set -no-integrated-as for specific object-file when building with LLVM_IAS=1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Masahiro,

I am trying to build with clang-10, ld.lld-10 and LLVM_IAS=1.

I fell over some problems in x86/crypto area where I have found fixes.

But how on hell can I set -no-integrated-as for specific object-file?

[ arch/x86/crypto/Makefile ]

ifdef LLVM_IAS
KBUILD_CPPFLAGS += -no-integrated-as
endif

...at the top sets -no-integrated-as for all object-files.

I have two broken object-files (or more exact the corresponding *.S
file is broken):
#1: aes_ctrby8_avx-x86_64.o <--- FIXED
<https://github.com/ClangBuiltLinux/linux/issues/1008>
#2: crc32c-pcl-intel-asm_64.o <--- PATCH exist - does not work for me

I tried...

CFLAGS_aes_ctrby8_avx-x86_64.o += -no-integrated-as
CLAGS_crc32c-pcl-intel-asm_64.o += -no-integrated-as

or

CPPFLAGS_aes_ctrby8_avx-x86_64.o += -no-integrated-as
CPPFLAGS_crc32c-pcl-intel-asm_64.o += -no-integrated-as

or

cflags-$(CONFIG_CRYPTO_AES_NI_INTEL) += -no-integrated-as
cflags-$(CONFIG_CRYPTO_CRC32C_INTEL) += -no-integrated-as

or

cppflags-$(CONFIG_CRYPTO_AES_NI_INTEL) += -no-integrated-as
cppflags-$(CONFIG_CRYPTO_CRC32C_INTEL) += -no-integrated-as

All above also with "-fno-integrated-as" at the top and at the bottom
of the Makefile.

Can you give a hint?

Thanks.

Regards,
- Sedat -

[1] https://github.com/ClangBuiltLinux/linux/issues/1049
[1] https://github.com/ClangBuiltLinux/linux/issues/1050



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux