Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754737AbbEOJlK (ORCPT ); Fri, 15 May 2015 05:41:10 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60068 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753871AbbEOJlC (ORCPT ); Fri, 15 May 2015 05:41:02 -0400 Date: Fri, 15 May 2015 02:39:51 -0700 From: tip-bot for Ingo Molnar Message-ID: Cc: peterz@infradead.org, a.p.zijlstra@chello.nl, aswin@hp.com, torvalds@linux-foundation.org, brgerst@gmail.com, paulmck@linux.vnet.ibm.com, tglx@linutronix.de, jason.low2@hp.com, mingo@kernel.org, luto@amacapital.net, hpa@zytor.com, dave@stgolabs.net, dvlasenk@redhat.com, tim.c.chen@linux.intel.com, bp@alien8.de, linux-kernel@vger.kernel.org Reply-To: luto@amacapital.net, dave@stgolabs.net, hpa@zytor.com, dvlasenk@redhat.com, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, bp@alien8.de, peterz@infradead.org, aswin@hp.com, torvalds@linux-foundation.org, a.p.zijlstra@chello.nl, brgerst@gmail.com, paulmck@linux.vnet.ibm.com, tglx@linutronix.de, mingo@kernel.org, jason.low2@hp.com In-Reply-To: <20150410121808.GA19918@gmail.com> References: <20150410121808.GA19918@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86: Pack function addresses tightly as well Git-Commit-ID: 4874fe1eeb40b403a8c9d0ddeb4d166cab3f37ba X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2343 Lines: 62 Commit-ID: 4874fe1eeb40b403a8c9d0ddeb4d166cab3f37ba Gitweb: http://git.kernel.org/tip/4874fe1eeb40b403a8c9d0ddeb4d166cab3f37ba Author: Ingo Molnar AuthorDate: Fri, 10 Apr 2015 14:18:08 +0200 Committer: Ingo Molnar CommitDate: Fri, 15 May 2015 11:05:21 +0200 x86: Pack function addresses tightly as well So as per the arguments laid out in: be6cb02779ca ("x86: Align jump targets to 1-byte boundaries") We can pack function addresses tightly as well: text data bss dec filename 12566391 1617840 1089536 15273767 vmlinux.align.16-byte 12224951 1617840 1089536 14932327 vmlinux.align.1-byte 11976567 1617840 1089536 14683943 vmlinux.align.1-byte.funcs-1-byte Which brings another 2% reduction in the defconfig kernel's code size. Acked-by: Denys Vlasenko Cc: Andy Lutomirski Cc: Aswin Chandramouleeswaran Cc: Borislav Petkov Cc: Brian Gerst Cc: Davidlohr Bueso Cc: H. Peter Anvin Cc: Jason Low Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Tim Chen Link: http://lkml.kernel.org/r/20150410121808.GA19918@gmail.com Signed-off-by: Ingo Molnar --- arch/x86/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index ca17e5f..5c7edf9 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -80,6 +80,9 @@ else # Align jump targets to 1 byte, not the default 16 bytes: KBUILD_CFLAGS += -falign-jumps=1 + # Pack functions tightly as well: + KBUILD_CFLAGS += -falign-functions=1 + # Don't autogenerate traditional x87 instructions KBUILD_CFLAGS += $(call cc-option,-mno-80387) KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/