[PATCH] winebuild to read .dynsym instead of .stab

clemens therapy at endorphin.org
Mon Jan 28 05:35:45 CST 2002


hello!

winebuild should process the .dynsym of shared libraries instead of 
the .stab, since winebuild would otherwise become useless on prepackaged
installation, in which all shared libs are stripped, losing their regular
.stab.

--- tools/winebuild/import.c~	Sat Dec 15 00:14:26 2001
+++ tools/winebuild/import.c	Mon Jan 28 01:16:41 2002
@@ -112,8 +112,8 @@
     if (!(ext = strrchr( name, '.' ))) ext = name + strlen(name);
 
     if (!(fullname = open_library( name ))) return;
-    cmdline = xmalloc( strlen(fullname) + 4 );
-    sprintf( cmdline, "nm %s", fullname );
+    cmdline = xmalloc( strlen(fullname) + 7 );
+    sprintf( cmdline, "nm -D %s", fullname );
     free( fullname );
 
     if (!(f = popen( cmdline, "r" )))





More information about the wine-patches mailing list