From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14731 invoked by alias); 28 Oct 2009 20:20:24 -0000 Received: (qmail 14722 invoked by uid 22791); 28 Oct 2009 20:20:23 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 20:20:18 +0000 Received: (qmail 2602 invoked from network); 28 Oct 2009 20:20:16 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Oct 2009 20:20:16 -0000 From: Pedro Alves To: Paul Pluzhnikov Subject: Re: --gc-section leftovers workaround. Date: Wed, 28 Oct 2009 20:20:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <200910281851.01364.pedro@codesourcery.com> <200910281935.26781.pedro@codesourcery.com> <8ac60eac0910281313h565898fvc3dcdc11728bbbec@mail.gmail.com> In-Reply-To: <8ac60eac0910281313h565898fvc3dcdc11728bbbec@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910282020.48879.pedro@codesourcery.com> 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/msg00680.txt.bz2 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. We could even have FDE,FDE+1,FDE+2,FDE+3, where FDE,FDE+1,FDE+2 all have initial_location == 0, and FDE+3 not. We want to compare each of FDE,FDE+1,FDE+2 with FDE+3 for overlap and discard those that do overlap, not FDE with FDE+1 ; FDE+1 with FDE+2 ; FDE+2 with FDE+3. -- Pedro Alves