delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/06/16:27:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 06 Aug 2002 16:27:59 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: rebase and ME
In-reply-to: <20020806200413.GE1892@tishler.net>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20020806202759.GF1892@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <000301c23c86$cd2da4c0$651c440a AT BRAMSCHE>
<004b01c23d7b$402da480$651c440a AT BRAMSCHE> <20020806200413 DOT GE1892 AT tishler DOT net>

Ralf,

On Tue, Aug 06, 2002 at 04:04:13PM -0400, Jason Tishler wrote:
> On Tue, Aug 06, 2002 at 08:58:28PM +0200, Ralf Habacker wrote:
> > > Please try the appended patched rebase.
> > > 
> > I haven't got any comments. Does this rebase not work ? 
> 
> Sorry, I've been backed up debugging an ipc-daemon problem.  I will try
> your version under 2000 tomorrow morning.

Actually, I just found some time.  Your version seems to rebase fine,
but SEGVs on known problematic (stripped) DLLs:

    $ cp /usr/bin/cygcurl-2.dll .
    $ strip cygcurl-2.dll 
    $ ./rebase -l cygcurl-2.dll 
    cygcurl-2.dll ImageBase: 10000000 ImageSize: 00020000
                                                 ^^^^^^^^
    $ ./rebase -d -b 0x68000000 cygcurl-2.dll 
    Segmentation fault (core dumped)

Note that stripping cygcurl-2.dll seems to whack the ImageSize.

Without stripping we get the following:

    $ cp /usr/bin/cygcurl-2.dll .
    $ ./rebase -l cygcurl-2.dll 
    cygcurl-2.dll ImageBase: 10000000 ImageSize: 00069000
    $ ../rebase/rebase -d -b 0x68000000 cygcurl-2.dll
    $ ./rebase -l cygcurl-2.dll 
    cygcurl-2.dll ImageBase: 67f90000 ImageSize: 00069000

Can you fix this problem?

Thanks,
Jason

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019