Should process the .dynsym of shared libraries instead of the .stab.
diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 2fda786..39634de 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c
@@ -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" )))