From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Fleming Subject: Re: [PATCH v4 3/3] arm64/efi: isolate EFI stub from the kernel proper Date: Mon, 2 Nov 2015 12:49:52 +0000 Message-ID: <20151102121618.GA2331@codeblueprint.co.uk> References: <1444330924-17830-1-git-send-email-ard.biesheuvel@linaro.org> <1444330924-17830-4-git-send-email-ard.biesheuvel@linaro.org> <562EA894.8070505@arm.com> <562EAA22.3010905@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ard Biesheuvel Cc: Jeremy Linton , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , Mark Rutland , Catalin Marinas , Will Deacon , Leif Lindholm , Andrey Ryabinin List-Id: linux-efi@vger.kernel.org On Tue, 27 Oct, at 11:20:51AM, Ard Biesheuvel wrote: > From 1179099f89db54294f419493d152083fb8e5af3d Mon Sep 17 00:00:00 2001 > From: Ard Biesheuvel > Date: Tue, 27 Oct 2015 11:12:51 +0900 > Subject: [PATCH] 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 > --- > drivers/firmware/efi/libstub/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/efi/libstub/Makefile > b/drivers/firmware/efi/libstub/Makefile > index bca9a76cbd33..acc25d7c5da2 100644 > --- a/drivers/firmware/efi/libstub/Makefile > +++ b/drivers/firmware/efi/libstub/Makefile > @@ -51,7 +51,7 @@ lib-$(CONFIG_EFI_ARMSTUB) += arm-stub.o fdt.o string.o \ > 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 I *think* this should be OK. Reviewed-by: Matt Fleming