This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]