From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 694 invoked by alias); 28 Oct 2009 19:23:39 -0000 Received: (qmail 686 invoked by uid 22791); 28 Oct 2009 19:23:39 -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 19:23:32 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id n9SJNUBe022464 for ; Wed, 28 Oct 2009 12:23:30 -0700 Received: from pwj11 (pwj11.prod.google.com [10.241.219.75]) by zps75.corp.google.com with ESMTP id n9SJN1kH004747 for ; Wed, 28 Oct 2009 12:23:13 -0700 Received: by pwj11 with SMTP id 11so990314pwj.0 for ; Wed, 28 Oct 2009 12:23:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.115.117.4 with SMTP id u4mr2804179wam.43.1256757791782; Wed, 28 Oct 2009 12:23:11 -0700 (PDT) In-Reply-To: <200910281851.01364.pedro@codesourcery.com> References: <200910281851.01364.pedro@codesourcery.com> Date: Wed, 28 Oct 2009 19:23:00 -0000 Message-ID: <8ac60eac0910281223q144eb548qe92cc9758d184a96@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/msg00673.txt.bz2 On Wed, Oct 28, 2009 at 11:51 AM, Pedro Alves wrote: > With --gc-sections, gnu ld zeros out the start addresses of > unreferences FDEs, but leaves them behind. I believe the same thing happens when there are multiple instances of the same inline function in several translation units: one is selected, and debug info for the other ones gets zero start address. The patch looks good to me. Thanks, -- Paul Pluzhnikov