Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6489080imm; Wed, 27 Jun 2018 08:26:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKasqRvwcLZehOdoCAAzUTy2O5cXLstEdRr/nlmNkBbDfk9W/ulu4WUx9Fi0KByfQ3+l9F0 X-Received: by 2002:a63:9c02:: with SMTP id f2-v6mr5618278pge.16.1530113203672; Wed, 27 Jun 2018 08:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530113203; cv=none; d=google.com; s=arc-20160816; b=tva9UhNuWrYq2Ue4R/0NeP+glWTtBvsd0wdPei2DGfuP/R9jpzwLZ9hveXBpB2yFAM XtW57tpA3i2KOFmaI7WDnxH8y7UA50y9ifeZRQwwOvuAzgaiXnBGEyRXnPm8uSWTzJhv wrFKqshd5ur5dD4jBN/37NJlRHS2iAp0WZM9DzqoS6paDeYcSRT1ef5w58H3uBjwTWiP Mt/ZbyIV+skbz3z5BoD4nsrVLzTz0oz/L6Lh3A7HjjKi5YvLd12Ei4mDmkerm4VmGlPw zICJLslN1Ma829zLQDvFPMj6alRdHmzGMsS2b+DP0sdJjF+P2yJ2s18bmohh4Eoh9u3o Y5JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=EEpepCHpcFnzkQVndYc+GFivXUd7/VB9gMtZxN08IHc=; b=kRCBRK3rTbgVEQz58/VoianBjdQ+tVqHQbYmr+UQJ23rcWLMrdlDI0mKUyD5w24HJE K/qfm4rwd5Vajxw9rGcmVd/guxWCj1fIPGj4NRbin9TrjAcIhIUAS3qjTtI8YPVy1Mby y3wJuNYrq47nx2v/+mZTt44KRETGxWpEhZMEjOLE30qjr/+QhHXwLPO+0EX5+6+9LdhF pxpNU2ix3iBMHQNEDRsJgEyY46kw+KWdTHoySIob6YOZTM3UZWxo/17/OJGwv03m6Rgx H9rAbaY/hoB3RFiR+loh7YAIGf0X13uHusuTdqWl5LLiICTZp3SxEifoG7WJz4RSom9Q L2Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si3533339pgd.653.2018.06.27.08.26.29; Wed, 27 Jun 2018 08:26:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752267AbeF0POf (ORCPT + 99 others); Wed, 27 Jun 2018 11:14:35 -0400 Received: from foss.arm.com ([217.140.101.70]:33138 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002AbeF0POd (ORCPT ); Wed, 27 Jun 2018 11:14:33 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A5AB718A; Wed, 27 Jun 2018 08:14:33 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 76EB03F266; Wed, 27 Jun 2018 08:14:33 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 5D1101AE3692; Wed, 27 Jun 2018 16:15:11 +0100 (BST) Date: Wed, 27 Jun 2018 16:15:11 +0100 From: Will Deacon To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Kees Cook , Michael Ellerman , Thomas Garnier , Thomas Gleixner , "Serge E. Hallyn" , Bjorn Helgaas , Benjamin Herrenschmidt , Russell King , Paul Mackerras , Catalin Marinas , Petr Mladek , Ingo Molnar , James Morris , Andrew Morton , Nicolas Pitre , Josh Poimboeuf , Steven Rostedt , Sergey Senozhatsky , Linus Torvalds , Jessica Yu , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v9 0/6] add support for relative references in special sections Message-ID: <20180627151510.GE30631@arm.com> References: <20180626182802.19932-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180626182802.19932-1-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ard, On Tue, Jun 26, 2018 at 08:27:55PM +0200, Ard Biesheuvel wrote: > This adds support for emitting special sections such as initcall arrays, > PCI fixups and tracepoints as relative references rather than absolute > references. This reduces the size by 50% on 64-bit architectures, but > more importantly, it removes the need for carrying relocation metadata > for these sections in relocatable kernels (e.g., for KASLR) that needs > to be fixed up at boot time. On arm64, this reduces the vmlinux footprint > of such a reference by 8x (8 byte absolute reference + 24 byte RELA entry > vs 4 byte relative reference) > > Patch #3 was sent out before as a single patch. This series supersedes > the previous submission. This version makes relative ksymtab entries > dependent on the new Kconfig symbol HAVE_ARCH_PREL32_RELOCATIONS rather > than trying to infer from kbuild test robot replies for which architectures > it should be blacklisted. > > Patch #1 introduces the new Kconfig symbol HAVE_ARCH_PREL32_RELOCATIONS, > and sets it for the main architectures that are expected to benefit the > most from this feature, i.e., 64-bit architectures or ones that use > runtime relocations. > > Patch #2 add support for #define'ing __DISABLE_EXPORTS to get rid of > ksymtab/kcrctab sections in decompressor and EFI stub objects when > rebuilding existing C files to run in a different context. I had a small question on patch 3, but it's really for my understanding. So, for patches 1-3: Reviewed-by: Will Deacon Thanks, Will