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)
commitf8f8bdc48851da979c6e0e4808b6031122e4af47
tree7a455e08cf22627e8f9c6f0fbe115a7a25c99f6e
parentaa644fa64c25ab2231a0fa9464892f5579d4e161
arm64/efi: fix libstub build under CONFIG_MODVERSIONS

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