Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5948066imm; Tue, 26 Jun 2018 22:48:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJV29HWlFL4e4Lv2giEuAq0LVT7ADjkqBILyi5AFFZgZF5Y+CJhtXP7jUCtEcwRNBbw9eM X-Received: by 2002:a63:9041:: with SMTP id a62-v6mr3976144pge.220.1530078487411; Tue, 26 Jun 2018 22:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530078487; cv=none; d=google.com; s=arc-20160816; b=FfAdt0xmuMaM91kuen6nvrWW0aYQcx5xTKbpud0ayXOJMBzn8x+OMRF+isLfiBtdGT p3tB0QJhISfqsoR9xLpFuNuOs78KUPN+YwhBXdXqN/ZrcrkpUsKNupHUuZytSxR9JGgy mt6sgZHqCeeVPKNkTA8q5hU34oyPdmGWjl1kCtcqKHg3uVbHUW+fb3+754KA9NX2g+0Z mFttcm1Dd+ex3XMljGxtSD5/qXgFyWwVlKqO0UmJkjYz5GtvWt5UQ4Nbu4QRKohExJE2 5t72SH/GJ8pLEHa33vALiV/yWwFOT0kJag/9Cw+CUXp44PZpNORuUOhidR6vpavCLLk8 wMJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=U4Xid+z+Z+PRigue6ipWTsnC7s9qOUMilwo2OVnxsMQ=; b=rExJK6k54Y4WUCpX8FyNeMpnExWDI3+PLgYz+TPeP3P+G9Yrqp4PZ5y1FAdatyPqVX 5Hq8f1LsBJMxySTh1YhyAsHYD2Ctx+EBRLBXB0+RFNrQAX1+D4SgSozzqjNTWuh4IaJF uucrPtGoAYyBTu2vEuo1N3c+eUVsnwAOXrN8evv0nWQohtWOPxJpk1tkKELQQ0c6z1jR /JMZkjqRgKg37KDBrUVPNDNrQJAghik3X1TtEVytLwy+0frYIpCIYtRqskWBMP0Z++jE tQW9zNct9KaotItZnWwsy1ARc+kSx51u3PoFCZg9Fo4TPuZFCH4/ADJ4AIhCZdp9v2hB xjVw== 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 d10-v6si2714907pgo.630.2018.06.26.22.47.53; Tue, 26 Jun 2018 22:48:07 -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 S1752424AbeF0Fd7 (ORCPT + 99 others); Wed, 27 Jun 2018 01:33:59 -0400 Received: from ozlabs.org ([203.11.71.1]:51513 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbeF0Fd6 (ORCPT ); Wed, 27 Jun 2018 01:33:58 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41Fs5h5dWjz9s0w; Wed, 27 Jun 2018 15:33:44 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Ard Biesheuvel , linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , Arnd Bergmann , Kees Cook , Will Deacon , 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 In-Reply-To: <20180626182802.19932-1-ard.biesheuvel@linaro.org> References: <20180626182802.19932-1-ard.biesheuvel@linaro.org> Date: Wed, 27 Jun 2018 15:33:44 +1000 Message-ID: <87r2ks6bev.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ard Biesheuvel writes: > 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) ... > > Cc: Arnd Bergmann > Cc: Kees Cook > Cc: Will Deacon > Cc: Michael Ellerman This seems to be working on powerpc. It boots on a couple of machines with no obvious badness. And there's some size reduction with a random config I had lying around: Total: Before=14820494, After=14673313, chg -0.99% It can get some more testing once it's in linux-next as far as I'm concerned. Acked-by: Michael Ellerman (powerpc) cheers