Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755819AbZDUKXn (ORCPT ); Tue, 21 Apr 2009 06:23:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753610AbZDUKXd (ORCPT ); Tue, 21 Apr 2009 06:23:33 -0400 Received: from one.firstfloor.org ([213.235.205.2]:37392 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752038AbZDUKXc (ORCPT ); Tue, 21 Apr 2009 06:23:32 -0400 Date: Tue, 21 Apr 2009 12:26:57 +0200 From: Andi Kleen To: Arjan van de Ven Cc: Linus Torvalds , Tim Abbott , Linux kernel mailing list , Anders Kaseorg , Waseem Daher , Denys Vlasenko , Rusty Russell , Andi Kleen , "H. Peter Anvin" , Stephen Rothwell , Jeff Arnold , Andrew Morton , Jon Masters Subject: Re: [PATCH v2 0/4] Add support for compiling with -ffunction-sections -fdata-sections Message-ID: <20090421102657.GA14687@one.firstfloor.org> References: <1238973278-31735-1-git-send-email-tabbott@mit.edu> <20090420201826.7c1f7f06@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090420201826.7c1f7f06@infradead.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 22 > we can probably drop a ton of ifdefs... That would require always forcing it to on. > an alternative approach would be to have a special build target that > uses this, but makes a 2nd vmlinux, and then runs a diff on the symbols > against the regular one... and finds which functions got dropped. > Some patient soul can then go about and stick in ifdefs and stuff... I bet that would result in horrible looking code. If the toolchain based approach can be made to work (and from the reports of people who tried it it sounds like it can) that would be vastly preferable. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/