]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arm64/efi: fix libstub build under CONFIG_MODVERSIONS
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 27 Oct 2015 02:12:51 +0000 (11:12 +0900)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 2 Nov 2015 13:50:17 +0000 (13:50 +0000)
Now that we strictly forbid absolute relocations in libstub code,
make sure that we don't emit any when CONFIG_MODVERSIONS is enabled,
by stripping the kcrctab sections from the object file. This fixes
a build problem under CONFIG_MODVERSIONS=y.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/efi/libstub/Makefile

index 92ae557abbbcaf09769a4d52e550b3cbb73cd00b..3c0467d3688cff14df877fea66d61c3fbb3279bd 100644 (file)
@@ -54,7 +54,7 @@ CFLAGS_arm64-stub.o           := -DTEXT_OFFSET=$(TEXT_OFFSET)
 extra-$(CONFIG_EFI_ARMSTUB)    := $(lib-y)
 lib-$(CONFIG_EFI_ARMSTUB)      := $(patsubst %.o,%.stub.o,$(lib-y))
 
-STUBCOPY_FLAGS-y               := -R .debug* -R *ksymtab*
+STUBCOPY_FLAGS-y               := -R .debug* -R *ksymtab* -R *kcrctab*
 STUBCOPY_FLAGS-$(CONFIG_ARM64) += --prefix-alloc-sections=.init \
                                   --prefix-symbols=__efistub_
 STUBCOPY_RELOC-$(CONFIG_ARM64) := R_AARCH64_ABS