Release builds generate different strangely formatted export names
authorMagnus Hagander <magnus@hagander.net>
Thu, 3 May 2007 14:04:03 +0000 (14:04 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 3 May 2007 14:04:03 +0000 (14:04 +0000)
for local symbols, that shouldn't be exported. This patch excludes them,
cutting down about 10,000 exported symbols and decreasing the binary size
by 20%.

src/tools/msvc/gendef.pl

index d1f9bc04d6cfee2cb2c04d22a9022cc6350fcb99..6ca6ea885698b3ae6183af05e4f89aac4ce189bd 100644 (file)
@@ -36,6 +36,7 @@ while (<$ARGV[0]/*.obj>)
         next if $pieces[6] =~ /NULL_THUNK_DATA$/;
         next if $pieces[6] =~ /^__IMPORT_DESCRIPTOR/;
         next if $pieces[6] =~ /^__NULL_IMPORT/;
+        next if $pieces[6] =~ /^\?\?_C/;
 
         push @def, $pieces[6];
     }