From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21221 invoked by alias); 28 Dec 2001 17:54:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 21194 invoked from network); 28 Dec 2001 17:54:29 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154) by sources.redhat.com with SMTP; 28 Dec 2001 17:54:29 -0000 Received: from cgf.cipe.redhat.com (dhcpd183.meridian.redhat.com [172.16.47.183]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id fBSHsSa03930 for ; Fri, 28 Dec 2001 12:54:28 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id fBSHsUf30935 for cygwin@cygwin.com; Fri, 28 Dec 2001 12:54:30 -0500 Date: Fri, 28 Dec 2001 10:24:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: rebase addon - Bas and Size listing of dll's without rebasing Message-ID: <20011228175430.GB30625@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20011227180503.GD2204@dothill.com> <001501c18f95$cbf20720$0e6307d5@BRAMSCHE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501c18f95$cbf20720$0e6307d5@BRAMSCHE> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2001-12/txt/msg01248.txt.bz2 On Fri, Dec 28, 2001 at 12:50:07PM +0100, Ralf Habacker wrote: >> -----Original Message----- >> From: Jason Tishler [mailto:jason@tishler.net] >> 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. :-( Seems to work fine with the distributed version of binutils. I tried this with cygncurses6.dll. Regardless, if there is a problem in objdump then it obviously needs to be fixed. Adding an option to some other program because objdump is broken is not the way to approach this, IMO. cgf -- 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/