From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751077AbdHRF4n (ORCPT ); Fri, 18 Aug 2017 01:56:43 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36468 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbdHRF4k (ORCPT ); Fri, 18 Aug 2017 01:56:40 -0400 Date: Fri, 18 Aug 2017 14:56:55 +0900 From: Sergey Senozhatsky To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, "H. Peter Anvin" , Arnd Bergmann , Heiko Carstens , Kees Cook , Will Deacon , Michael Ellerman , Thomas Garnier , Thomas Gleixner , "Serge E. Hallyn" , Bjorn Helgaas , Benjamin Herrenschmidt , Paul Mackerras , Catalin Marinas , Petr Mladek , Ingo Molnar , James Morris , Andrew Morton , Nicolas Pitre , Steven Rostedt , Martin Schwidefsky , Sergey Senozhatsky , Jessica Yu Subject: Re: [PATCH 0/5] add support for relative references in special sections Message-ID: <20170818055655.GA495@jagdpanzerIV.localdomain> References: <20170814105231.14608-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170814105231.14608-1-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (08/14/17 11:52), 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 relocatables kernels (e.g., for KASLR) that need > to fix up these absolute references 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) [..] a side note, checkpatch complaints quite a lot. -ss