arm64: configs: vendor: Switch linker to LLD

If we enable lld, we also enable the CONFIG_LTO_CLANG to avoid the build
breakage. We need to do two things
1. To enable CONFIG_LTO_CLANG in defconfig
2. Clean the "-d LTO" and "-d LTO_CLANG" from build configs

THINLTO also disabled and we enable it when using *.config.no-cfi to
reduce the build time.

Bug: 140525226
Change-Id: I7adb9f9e474acddad078447be17777355d884d20
Signed-off-by: Kyle Lin <kylelin@google.com>
This commit is contained in:
Kyle Lin
2020-01-17 02:04:58 +08:00
committed by Nolen Johnson
parent 62c1b32987
commit b7e673b219
4 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y
CONFIG_JUMP_LABEL=y
CONFIG_LTO_CLANG=y
CONFIG_SHADOW_CALL_STACK=y
CONFIG_PANIC_ON_REFCOUNT_ERROR=y
CONFIG_MODULES=y

View File

@ -92,6 +92,7 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y
CONFIG_JUMP_LABEL=y
CONFIG_LTO_CLANG=y
CONFIG_SHADOW_CALL_STACK=y
CONFIG_PANIC_ON_REFCOUNT_ERROR=y
CONFIG_MODULES=y

View File

@ -89,6 +89,7 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y
CONFIG_JUMP_LABEL=y
CONFIG_LTO_CLANG=y
CONFIG_SHADOW_CALL_STACK=y
CONFIG_PANIC_ON_REFCOUNT_ERROR=y
CONFIG_MODULES=y

View File

@ -9,8 +9,6 @@ function update_kasan_config() {
-d CONFIG_RANDOMIZE_BASE \
-d CONFIG_KASAN_OUTLINE \
--set-val CONFIG_FRAME_WARN 0 \
-d LTO \
-d LTO_CLANG \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG \