From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20974 invoked by alias); 16 Feb 2008 23:01:09 -0000 Received: (qmail 20957 invoked by uid 22791); 16 Feb 2008 23:01:08 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Feb 2008 23:00:47 +0000 Received: from oaamta01sl.mx.bigpond.com ([58.174.193.185]) by omta05sl.mx.bigpond.com with ESMTP id <20080216230044.BEIU26389.omta05sl.mx.bigpond.com@oaamta01sl.mx.bigpond.com>; Sat, 16 Feb 2008 23:00:44 +0000 Received: from bubble.grove.modra.org ([58.174.193.185]) by oaamta01sl.mx.bigpond.com with ESMTP id <20080216230044.QKQW2036.oaamta01sl.mx.bigpond.com@bubble.grove.modra.org>; Sat, 16 Feb 2008 23:00:44 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id 6723F3FB7FE; Sun, 17 Feb 2008 09:30:42 +1030 (CST) Date: Sat, 16 Feb 2008 23:01:00 -0000 From: Alan Modra To: Ulrich Weigand Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: PR5692 Message-ID: <20080216230042.GA7043@bubble.grove.modra.org> Mail-Followup-To: Ulrich Weigand , binutils@sourceware.org, gdb-patches@sourceware.org References: <20080215034748.GA1840@bubble.grove.modra.org> <200802161619.m1GGJftU003725@d12av02.megacenter.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200802161619.m1GGJftU003725@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.9i X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A010203.47B76B1C.0052,ss=1,fgs=0 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-02/txt/msg00274.txt.bz2 On Sat, Feb 16, 2008 at 05:19:41PM +0100, Ulrich Weigand wrote: > This appears to fix the crash: > > diff -c -p -r1.29 simple.c > *** simple.c 10 Jul 2007 13:49:04 -0000 1.29 > --- simple.c 16 Feb 2008 16:17:50 -0000 > *************** bfd_simple_get_relocated_section_content > *** 188,193 **** > --- 188,194 ---- > memset (&link_info, 0, sizeof (link_info)); > link_info.input_bfds = abfd; > link_info.input_bfds_tail = &abfd->link_next; > + link_info.output_bfd = abfd; > > link_info.hash = _bfd_generic_link_hash_table_create (abfd); > link_info.callbacks = &callbacks; > > However, I'm not sure this is really the right thing to do here ... It is. I have installed your fix. Thanks! -- Alan Modra Australia Development Lab, IBM