From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21030 invoked by alias); 28 Oct 2009 20:35:31 -0000 Received: (qmail 21021 invoked by uid 22791); 28 Oct 2009 20:35:30 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 20:35:26 +0000 Received: from spaceape12.eur.corp.google.com (spaceape12.eur.corp.google.com [172.28.16.146]) by smtp-out.google.com with ESMTP id n9SKZNWH019526 for ; Wed, 28 Oct 2009 13:35:24 -0700 Received: from pwj11 (pwj11.prod.google.com [10.241.219.75]) by spaceape12.eur.corp.google.com with ESMTP id n9SKZKE1000907 for ; Wed, 28 Oct 2009 13:35:21 -0700 Received: by pwj11 with SMTP id 11so1027349pwj.0 for ; Wed, 28 Oct 2009 13:35:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.237.30 with SMTP id k30mr3981853wah.102.1256762120107; Wed, 28 Oct 2009 13:35:20 -0700 (PDT) In-Reply-To: <200910282020.48879.pedro@codesourcery.com> References: <200910281851.01364.pedro@codesourcery.com> <200910281935.26781.pedro@codesourcery.com> <8ac60eac0910281313h565898fvc3dcdc11728bbbec@mail.gmail.com> <200910282020.48879.pedro@codesourcery.com> Date: Wed, 28 Oct 2009 20:35:00 -0000 Message-ID: <8ac60eac0910281335l959c202u3c137255abdb0a00@mail.gmail.com> Subject: Re: --gc-section leftovers workaround. From: Paul Pluzhnikov To: Pedro Alves Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00681.txt.bz2 On Wed, Oct 28, 2009 at 1:20 PM, Pedro Alves wrote: > On Wednesday 28 October 2009 20:13:43, Paul Pluzhnikov wrote: >> Since we've just sorted them, (FDE+1)->initial_location == 0 implies that >> FDE->initial_location == 0 as well, doesn't it? > > Correct, but it may be FDE+1 that needs discarding, not FDE. I think you mean "it may be that FDE+1 *also* needs discarding, not just FDE". Would you mind rephrasing comment to mention multiple inline and template instances in addition to --gc-sections? Also, it's not just GNU linker; gold also does the same (after fix for PR gold/10400 that is), and I think every other ELF linker has to do so as well. Thanks, -- Paul Pluzhnikov