From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29876 invoked by alias); 25 Jan 2013 15:01:29 -0000 Received: (qmail 29650 invoked by uid 22791); 25 Jan 2013 15:00:44 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 25 Jan 2013 15:00:08 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6A3385206C1; Fri, 25 Jan 2013 16:00:06 +0100 (CET) Date: Fri, 25 Jan 2013 15:01:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Binutils objcopy bug (was Re: rebase segfault) Message-ID: <20130125150006.GC26731@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <50F5D246.6010902@gmail.com> <50F653AB.80102@gmail.com> <20130116123509.GA16991@calimero.vinschen.de> <50F6AD63.8080106@gmail.com> <20130124030145.22fa143f@YAAKOV04> <20130124092746.GC8311@calimero.vinschen.de> <510103AF.3080305@gmail.com> <20130124100037.GB24121@calimero.vinschen.de> <51027B9E.3080104@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2013-01/txt/msg00363.txt.bz2 On Jan 25 14:19, Kai Tietz wrote: > 2013/1/25 marco atzeri : > > On 1/24/2013 11:00 AM, Corinna Vinschen wrote: > > > >> I already explained why: The SEGV happens during relocation. > >> The file header has been changed already. If you call the > >> same rebase, it will try to rebase the file to the same new > >> address. If current file base address == requested file base > >> address, rebase will return without performing any action. > >> > > > > Hi Corinna, > > I would like your opinion on this .reloc strange issue of > > dict_snowball, as I have the impression I found the root cause. > > [...] > > Questions: > > - Is it anomalous to have a .reloc portion addressing the > > debug_* sections (so the original build file is broken) > > - or should strip recognize and remove reloc portion not > > anymore relevant ? > > > > rebase is choking on this portion of the .reloc table > > > >> > >> Corinna > >> > > > > Thansk in advance > > Marco > > Well, here are my 2-cents about that issue. In general it is a flaw > to have an base-relocation in debug-section, as this means such a > section can't be moved into a separate debug-file anymore, due that > has no relocation-information. > Nevertheless it would be good, if objcopy gets adjusted to eliminated > base-relocations of stripped sections. But the tool generating these debug relocs is gas, isn't it? Why on earth does it do that?!? I still think rebase is not to blame here. It has to assume that the relocation info is correct, doesn't it? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple