delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/27/13:02:02

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 27 Dec 2001 13:05:04 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: Ralf Habacker <Ralf DOT Habacker AT freenet DOT de>
Cc: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: rebase addon - Bas and Size listing of dll's without rebasing
Message-ID: <20011227180503.GD2204@dothill.com>
Mail-Followup-To: Ralf Habacker <Ralf DOT Habacker AT freenet DOT de>,
Cygwin <cygwin AT sources DOT redhat DOT com>
References: <000c01c18e49$22279220$526307d5 AT BRAMSCHE>
Mime-Version: 1.0
In-Reply-To: <000c01c18e49$22279220$526307d5@BRAMSCHE>
User-Agent: Mutt/1.3.24i

Ralf,

On Wed, Dec 26, 2001 at 09:08:49PM +0100, Ralf Habacker wrote:
> On analysing this problem I added an option "-l" to the rebase tool to
> list dll's imagebase and -size without rebasing. It's very interesting
> to see how MS chooses there Imagebase.

What about the following alternative solution:

    $ objdump -p foo.dll | egrep '(ImageBase|SizeOfImage)'
    ImageBase               68000000
    SizeOfImage             0003f000

> Because I hacked this very quick, I have used simple FILE structure
> and fopen/fread calls.  Perhaps someone like to change this to iostream
> functionality.

At this point, my priorities are:

    1. attempt to contribute rebase to binutils
    2. work on the integration with setup.exe

After the above is completed, then I would entertain adding such an
option if the community deemed it appropriate.  But, wouldn't
implementing it via ReBaseImage()'s fReBase parameter as opposed to
plucking certain bytes out of the executable be a better approach?  I
presume that this is how MS implements their '-s' (just sum image range)
option.

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