This is the mail archive of the 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] skipping import libraries for performance reasons - direct auto-import of dll's

> I am attaching a archive containing a version of your tests with the
> above changes made.  I would like however, to have it confirmed that
> the tests do work on a real Cygwin target before I check them into the
> binutils sources.

While checking the test case I recognizied, that the auto-import stuff couldn't
be disabled in case of direct linking to a dll.
The appended patch fixes this (I'm updating the test case which this check too)

I hope the indention is right.



2002-12-17  Ralf Habacker  <>

	* ld/emultempl/pe.em (pe_find_data_imports):
	don't search for data import when auto-import is disabled

$ cvs diff emultempl/pe.em
Index: emultempl/pe.em
RCS file: /cvs/src/src/ld/emultempl/pe.em,v
retrieving revision 1.71
diff -u -3 -p -B -r1.71 pe.em
--- emultempl/pe.em     16 Dec 2002 18:02:16 -0000      1.71
+++ emultempl/pe.em     17 Dec 2002 11:27:39 -0000
@@ -904,6 +904,9 @@ pe_find_data_imports ()
   struct bfd_link_hash_entry *undef, *sym;

+  if (link_info.pei386_auto_import == 0)
+    return;
   for (undef = link_info.hash->undefs; undef; undef=undef->next)
       if (undef->type == bfd_link_hash_undefined)

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