[PATCH] generalize list of "restricted" auto-export libraries on PE

Christopher Faylor cgf@redhat.com
Mon Nov 11 09:35:00 GMT 2002


The patch below was submitted to the cygwin mailing list.  I'm checking it
in.  It fixes a problem with cygwin's "new" gcc-2 release which appends a
"-2" to the end of some system libraries.

cgf

2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>

	* pe-dll.c (autofilter_liblist): Generalize library names to catch more
	creative library naming instances like, e.g., libstdc++-2.a.

Index: pe-dll.c
===================================================================
RCS file: /cvs/uberbaum/ld/pe-dll.c,v
retrieving revision 1.45
diff -u -p -r1.45 pe-dll.c
--- pe-dll.c	6 Nov 2002 19:36:20 -0000	1.45
+++ pe-dll.c	11 Nov 2002 17:29:23 -0000
@@ -228,12 +228,12 @@ static autofilter_entry_type autofilter_
 /* Do not specify library suffix explicitly, to allow for dllized versions.  */
 static autofilter_entry_type autofilter_liblist[] =
 {
-  { "libgcc.", 7 },
-  { "libstdc++.", 10 },
-  { "libmingw32.", 11 },
-  { "libg2c.", 7 },
-  { "libsupc++.", 10 },
-  { "libobjc.", 8 },
+  { "libgcc", 6 },
+  { "libstdc++", 9 },
+  { "libmingw32", 10 },
+  { "libg2c", 6 },
+  { "libsupc++", 9 },
+  { "libobjc", 7 },
   { NULL, 0 }
 };
 



More information about the Binutils mailing list