From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174AbdLYVJw (ORCPT ); Mon, 25 Dec 2017 16:09:52 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:34420 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752812AbdLYVJt (ORCPT ); Mon, 25 Dec 2017 16:09:49 -0500 X-Google-Smtp-Source: ACJfBovBg+LfVBMpvBvZZPodpbkR5NMgRXx3Vys7Ac1KbIiDygSRxtgnUl92cZGJ7ZbeUmibWnfY0U+awjbII+IgTB0= 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" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.