From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15771 invoked by alias); 27 Jun 2008 15:38:23 -0000 Received: (qmail 15762 invoked by uid 22791); 27 Jun 2008 15:38:23 -0000 X-Spam-Check-By: sourceware.org Received: from snape.ecoscentric.com (HELO snape.ecoscentric.com) (212.13.207.199) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jun 2008 15:37:54 +0000 Received: from localhost (snape.ecoscentric.com [127.0.0.1]) by snape.ecoscentric.com (Postfix) with ESMTP id 65377DC8D08 for ; Fri, 27 Jun 2008 16:37:52 +0100 (BST) Received: from snape.ecoscentric.com ([127.0.0.1]) by localhost (snape.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LVAU-DQOtmdl; Fri, 27 Jun 2008 16:37:51 +0100 (BST) Message-ID: <4865094E.2000004@eCosCentric.com> Date: Fri, 27 Jun 2008 16:01:00 -0000 From: Jonathan Larmour User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Jonathan Larmour CC: gdb-patches@sourceware.org Subject: Re: Avoid potential crashes with --gc-sections and low addresses References: <48650919.707@eCosCentric.com> In-Reply-To: <48650919.707@eCosCentric.com> OpenPGP: id=A5FB74E6 Content-Type: multipart/mixed; boundary="------------080000090500030500060803" 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: 2008-06/txt/msg00500.txt.bz2 This is a multi-part message in MIME format. --------------080000090500030500060803 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 516 Jonathan Larmour wrote: > Hi, > > The attached patch deals with a problem that occurs with some embedded > targets when the linker garbage collection feature of GNU ld > (--gc-sections) is used. and the patch is now attached. Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["Si fractum non sit, noli id reficere"]------ Opinions==mine --------------080000090500030500060803 Content-Type: text/plain; name="dwarf2,patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dwarf2,patch" Content-length: 341 --- gdb/dwarf2-frame.c~ 2008-05-04 00:24:17.000000000 +0100 +++ gdb/dwarf2-frame.c 2008-06-20 17:06:04.000000000 +0100 @@ -1795,7 +1795,8 @@ decode_frame_entry_1 (struct comp_unit * fde->eh_frame_p = eh_frame_p; - add_fde (unit, fde); + if (fde->initial_location) + add_fde (unit, fde); } return end; --------------080000090500030500060803--