From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13606 invoked by alias); 29 Jul 2011 14:57:39 -0000 Received: (qmail 13597 invoked by uid 22791); 29 Jul 2011 14:57:39 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BJ X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Jul 2011 14:57:20 +0000 Received: by fxg9 with SMTP id 9so2958261fxg.0 for ; Fri, 29 Jul 2011 07:57:19 -0700 (PDT) Received: by 10.223.54.90 with SMTP id p26mr1975347fag.44.1311951439070; Fri, 29 Jul 2011 07:57:19 -0700 (PDT) Received: from [127.0.0.1] (dslb-084-059-052-057.pools.arcor-ip.net [84.59.52.57]) by mx.google.com with ESMTPS id 12sm1137548faz.32.2011.07.29.07.57.16 (version=SSLv3 cipher=OTHER); Fri, 29 Jul 2011 07:57:17 -0700 (PDT) Message-ID: <4E32C997.10103@gmail.com> Date: Fri, 29 Jul 2011 15:34:00 -0000 From: Michael Trensch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: Nick Clifton CC: Michael Trensch , binutils@sourceware.org Subject: Re: objdump segfaults when dumping library with sources (arm-elf / arm-none-eabi) References: <4E297117.7060105@gmail.com> <4E32C4B2.4050307@redhat.com> In-Reply-To: <4E32C4B2.4050307@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00281.txt.bz2 On 29.07.2011 16:33, Nick Clifton wrote: >> My main problem is then objdump segfaults when dumping library files. > > Which version of the binutils are you using ? If you do not have the > latest release (2.21) or (even better) the mainline development code, > then it may be that this a bug that has already been fixed. Sorry that I forgot to add the version I was using. Just my lazyness. I was trying the original 2.21 release which segfaulted. Now i've tried the latest snapshot (2.21.53) which seems not being affected by this problem. I've diffed the sources and saw that much of the disassembling code (especially the functions calling get_map_sym_type()) has been re-arranged, probably fixing this problem. >> In my case it was easily reproducible when executing "arm-elf-objdump -S >> libc.a". > > The best way to solve this problem is to file a bug report with the > binutils bugzilla system: > > http://sourceware.org/bugzilla > > If you include a test case that can reproduce the problem, that will > really help. I will see if I can provide a reliable way to reproduce it, as it seems to depend on the library I dump. Maybe I can build a simple C File that produces and object containing this type of debugging symbol that fails. >> disassembly was missing. > After that I was able to dump the same library but the > > OK - to go any further though we are really going to need a test case. > And ideally a bug report in which to keep track of the work done in > solving the problem. > I will see what I can provide, when I am back at work. Regards, Michael