Skip to content

Commit 6a7ee50

Browse files
committed
ARM: disallow pre-ARMv5 builds with ld.lld
lld cannot build for ARMv4/v4T targets because it inserts 'blx' instructions that are unsupported there: ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected Add a Kconfig time dependency to prevent those targets from being selected in randconfig builds. Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Link: llvm/llvm-project#50764 Link: ClangBuiltLinux#964 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 4b88615 commit 6a7ee50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,14 @@ comment "CPU Core family selection"
342342
config ARCH_MULTI_V4
343343
bool "ARMv4 based platforms (FA526, StrongARM)"
344344
depends on !ARCH_MULTI_V6_V7
345+
depends on !LD_IS_LLD
345346
select ARCH_MULTI_V4_V5
346347
select CPU_FA526 if !(CPU_SA110 || CPU_SA1100)
347348

348349
config ARCH_MULTI_V4T
349350
bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
350351
depends on !ARCH_MULTI_V6_V7
352+
depends on !LD_IS_LLD
351353
select ARCH_MULTI_V4_V5
352354
select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
353355
CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \

0 commit comments

Comments
 (0)