From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29843 invoked by alias); 3 Apr 2006 06:36:48 -0000 Received: (qmail 29832 invoked by uid 22791); 3 Apr 2006 06:36:47 -0000 X-Spam-Check-By: sourceware.org Received: from province.act-europe.fr (HELO province.act-europe.fr) (212.157.227.214) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Apr 2006 06:36:46 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-province.act-europe.fr (Postfix) with ESMTP id 0CDAB4ACF6; Mon, 3 Apr 2006 08:36:43 +0200 (CEST) Received: from province.act-europe.fr ([127.0.0.1]) by localhost (province.act-europe.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 63005-07; Mon, 3 Apr 2006 08:36:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by province.act-europe.fr (Postfix) with ESMTP id A9FCE4ACEC; Mon, 3 Apr 2006 08:36:43 +0200 (CEST) From: Eric Botcazou To: Alan Modra Subject: Re: [PATCH] New option --print-gc-sections Date: Mon, 03 Apr 2006 06:36:00 -0000 User-Agent: KMail/1.7.1 Cc: binutils@gcc.gnu.org, Arnaud Charlet References: <200603281131.41402.ebotcazou@adacore.com> <20060329124950.GD22754@bubble.grove.modra.org> In-Reply-To: <20060329124950.GD22754@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200604030839.41118.ebotcazou@adacore.com> Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00013.txt.bz2 > Actually, you can already glean this from a link map. GC'd sections > will be those that are shown with zero size. That doesn't seem to work. Even if I remove the "if (size != 0)" at the beginning of print_input_section, the interesting sections are not present in the link map. On my example, a grep "unused" should have returned .text.u__unused, .text.u__unused2 and .gcc_except_table.u__unused, whereas I only see .rel.text.u__unused 0x0000000008049088 0x0 /usr/lib/crt1.o .rel.text.u__unused_2 0x0000000008049088 0x0 /usr/lib/crt1.o .rel.gcc_except_table.u__unused 0x00000000080490f8 0x0 /usr/lib/crt1.o -- Eric Botcazou