Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754463AbZDVLiw (ORCPT ); Wed, 22 Apr 2009 07:38:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752203AbZDVLin (ORCPT ); Wed, 22 Apr 2009 07:38:43 -0400 Received: from mx2.redhat.com ([66.187.237.31]:56793 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbZDVLim (ORCPT ); Wed, 22 Apr 2009 07:38:42 -0400 Message-ID: <49EF01B4.6000406@redhat.com> Date: Wed, 22 Apr 2009 07:38:28 -0400 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Anders Kaseorg CC: =?UTF-8?B?QW3DqXJpY28gV2FuZw==?= , Tim Abbott , Linus Torvalds , Linux kernel mailing list , Waseem Daher , Denys Vlasenko , Rusty Russell , Andi Kleen , "H. Peter Anvin" , Stephen Rothwell , Jeff Arnold Subject: Re: [PATCH v2 0/4] Add support for compiling with -ffunction-sections -fdata-sections References: <1238973278-31735-1-git-send-email-tabbott@mit.edu> <20090421140228.GC3303@hack> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 35 Anders Kaseorg wrote: > On Tue, 21 Apr 2009, Américo Wang wrote: >> Nice work! But, don't -ffunction-sections and -fdata-sections have >> collisions with '-g' and 'gprof'? Just like what gcc(1) describes. > > That description seems to be long obsolete. gcc used to warn that > -ffunction-sections may affect debugging, but that warning was disabled > for ELF targets in 1999, presumably because ELF has always supported > arbitrary section names even though some other object formats have issues. > > > I know that debugging under -ffunction-sections -g works fine on at least > x86, which is the only platform on which we currently propose to provide > this option, and based on that message it looks like other platforms are > fine too. Would you know actual version of gcc from which supports the combination of -ffunction-sections and -g? Thank you, -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- 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/