Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Ralf Habacker" To: "Cygwin" Subject: RE: rebase addon - Bas and Size listing of dll's without rebasing Date: Fri, 28 Dec 2001 12:50:07 +0100 Message-ID: <001501c18f95$cbf20720$0e6307d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20011227180503.GD2204@dothill.com> > -----Original Message----- > From: Jason Tishler [mailto:jason AT tishler DOT net] > Sent: Thursday, December 27, 2001 7:05 PM > To: Ralf Habacker > Cc: Cygwin > Subject: Re: rebase addon - Bas and Size listing of dll's without > rebasing > > > 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 Try it with a recent objdump and a dll with auto-import variables and you will see that objdump crashes. :-( > > > 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. I have done this, because I doesn't know any other way to do this, especially because of the objdump bug. There may be better solutions for this. Ralf -- 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/