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: Subject: RE: rebase addon - Bas and Size listing of dll's without rebasing Date: Sat, 29 Dec 2001 10:01:16 +0100 Message-ID: <002801c19047$5fa26300$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: <20011228175430.GB30625@redhat.com> > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Christopher Faylor > Sent: Friday, December 28, 2001 6:55 PM > To: cygwin AT cygwin DOT com > Subject: Re: rebase addon - Bas and Size listing of dll's without > rebasing > > > On Fri, Dec 28, 2001 at 12:50:07PM +0100, Ralf Habacker wrote: > >> -----Original Message----- > >> From: Jason Tishler [mailto:jason AT tishler DOT 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. Hmmh, because for kde I currently need a patched ld (the problem with linking static libraries to multiple dll's) I update periodically my source with the archive. I will verify, may be I have overseen something. > 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. You're right. I have reported this bug very early in the time the auto-import problem was introduced, but was not able to understand the bfd lib so that I could fix it by myself. Ralf > 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/ > > -- 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/