From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3z5BZk4jTVzDqmw for ; Tue, 26 Dec 2017 08:09:50 +1100 (AEDT) Received: by mail-io0-x243.google.com with SMTP id t196so31084923iof.0 for ; Mon, 25 Dec 2017 13:09:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20171225210502.GA635@ravnborg.org> References: <20171225205440.14575-1-ard.biesheuvel@linaro.org> <20171225205440.14575-2-ard.biesheuvel@linaro.org> <20171225210502.GA635@ravnborg.org> From: Ard Biesheuvel Date: Mon, 25 Dec 2017 21:09:48 +0000 Message-ID: Subject: Re: [PATCH v5 1/8] arch: enable relative relocations for arm64, power, x86, s390 and x86 To: Sam Ravnborg Cc: Linux Kernel Mailing List , "H. Peter Anvin" , Ralf Baechle , Arnd Bergmann , Heiko Carstens , Kees Cook , Will Deacon , Michael Ellerman , Thomas Garnier , Thomas Gleixner , "Serge E. Hallyn" , Bjorn Helgaas , Benjamin Herrenschmidt , Russell King , Paul Mackerras , Catalin Marinas , "David S. Miller" , Petr Mladek , Ingo Molnar , James Morris , Andrew Morton , Nicolas Pitre , Josh Poimboeuf , Steven Rostedt , Martin Schwidefsky , Sergey Senozhatsky , Linus Torvalds , Jessica Yu , linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, linuxppc-dev , linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 25 December 2017 at 21:05, Sam Ravnborg wrote: > Hi Ard. > > On Mon, Dec 25, 2017 at 08:54:33PM +0000, Ard Biesheuvel wrote: >> Before updating certain subsystems to use place relative 32-bit >> relocations in special sections, to save space and reduce the >> number of absolute relocations that need to be processed at runtime >> by relocatable kernels, introduce the Kconfig symbol and define it >> for some architectures that should be able to support and benefit >> from it. >> >> Cc: Catalin Marinas >> Cc: Will Deacon >> Cc: Benjamin Herrenschmidt >> Cc: Paul Mackerras >> Cc: Michael Ellerman >> Cc: Martin Schwidefsky >> Cc: Heiko Carstens >> Cc: Thomas Gleixner >> Cc: Ingo Molnar >> Cc: "H. Peter Anvin" >> Cc: x86@kernel.org >> Signed-off-by: Ard Biesheuvel >> --- >> arch/Kconfig | 10 ++++++++++ >> arch/arm64/Kconfig | 1 + > >> arch/arm64/kernel/vmlinux.lds.S | 2 +- > The change to arch/arm64/kernel/vmlinux.lds.S is > not justified in the changelog. > Did you add it by mistake? > No. The PREL32 support adds a __ADDRESSABLE() macro that emits code into .discard.text, and on arm64, the EFI object sections get a .init prefix so we need to discard .init.discard.* explicitly as well. I will add this as a note. Thanks, Ard.