Skip to content
Commit c1aac64d authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ard Biesheuvel
Browse files

efi/libstub/arm64: link stub lib.a conditionally



Since commit 799c4341 ("kbuild: thin archives make default for
all archs"), core-y is passed to the linker with --whole-archive.
Hence, the whole of stub library is linked to vmlinux.

Use libs-y so that lib.a is passed after --no-whole-archive for
conditional linking.

The unused drivers/firmware/efi/libstub/relocate.o will be dropped
for ARCH=arm64.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20200604022031.164207-1-masahiroy@kernel.org


Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 59476f80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment