X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 16 Jan 2013 17:25:51 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Binutils objcopy bug (was Re: rebase segfault)
Message-ID: <20130116162551.GE17179@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <50F516C8.9050602@gmail.com> <20130115100745.GC2353@calimero.vinschen.de> <50F5312A.2040503@gmail.com> <20130115112406.GA13752@calimero.vinschen.de> <50F5D246.6010902@gmail.com> <50F653AB.80102@gmail.com> <20130116123509.GA16991@calimero.vinschen.de> <50F6AD63.8080106@gmail.com> <20130116144211.GB17179@calimero.vinschen.de> <50F6C349.5050001@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <50F6C349.5050001@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jan 16 16:12, marco atzeri wrote:
> On 1/16/2013 3:42 PM, Corinna Vinschen wrote:
> 
> >
> >I forgot to mention, the --long-section-names enable option was
> >never default, apparently.  This would have to be fixed in cygport,
> >I guess.
> 
> The default seems to keep previous value, but
> as ".gnu_debuglink" is a long name at list in that
> case should be the default of objcopy to use it.
> 
> I noticed during my tests:
> the build version have long names (.debug_aranges, .debug_loc ..)
> the stripped version usually not (.text, .rdata, .reloc ..)
> But, there is a field somewhere in the exe format
> about long-section-names ? If so,  is it incorrectly filled by some
> other utility ?

There's no such field.  Of course you could argue that it's a bug
in objcopy nevertheless.  If the user specifies a long section name
on the command line, why does objcopy not preserve it by default?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          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

