This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: patch for "objdump/cygwin crashes on auto-imported libs" bug
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- To: "Kde-Cygwin" <kde-cygwin at kde dot org>,"Cygwin-Apps" <cygwin-apps at cygwin dot com>,"Binutils" <binutils at sources dot redhat dot com>
- Date: Thu, 25 Apr 2002 20:27:42 +0200
- Subject: RE: patch for "objdump/cygwin crashes on auto-imported libs" bug
Hi all,
I have applied the patch to the latest cvs release:
bfd/ChangeLog---------------------------------------
2002-04-25 Ralf Habacker <Ralf.Habacker@freenet.de>
* peXXigen.c (pe_print_idata): bugfix for segfault in
displaying auto-import image-import-descriptors
bfd/peXXigen.c---------------------------------------
$ cvs diff peXXigen.c
Index: peXXigen.c
===================================================================
RCS file: /cvs/src/src/bfd/peXXigen.c,v
retrieving revision 1.6
diff -u -3 -p -b -B -r1.6 peXXigen.c
--- peXXigen.c 30 Jan 2002 16:07:28 -0000 1.6
+++ peXXigen.c 25 Apr 2002 18:24:10 -0000
@@ -1224,7 +1224,15 @@ pe_print_idata (abfd, vfile)
idx2 = first_thunk - adj;
- for (j = 0; j < datasize; j += 4)
+ /* indicates that first_thunk points to an
+ data reference in the text segment (auto-import) */
+ if (idx2 < 0)
+ {
+ fprintf (file,
+ _("\tThe Import Address Table isn't identical (auto-import
descriptor)\n"));
+ differ = 1;
+ }
+ else for (j = 0; j < datasize; j += 4)
{
int ordinal;
char *member_name;