@@ -1,8 +1,8 @@ diff -uNr tcc-0.9.26.orig/tccpe.c tcc-0.9.26-1win32useopenlibs/tccpe.c --- tcc-0.9.26.orig/tccpe.c 2013-02-15 08:24:00.000000000 -0600 -+++ tcc-0.9.26-1win32useopenlibs/tccpe.c 2014-05-04 02:16:34.590555001 -0500 ++++ tcc-0.9.26-1win32useopenlibs/tccpe.c 2014-05-04 02:20:25.285150002 -0500 @@ -38,6 +38,9 @@ # define ADDR3264 DWORD #endif +#ifdef TCC_IS_NATIVE @@ -38,11 +38,11 @@ + } + tcc_free(modules); } if (!v) tcc_error_noabort("undefined symbol '%s'", name); -@@ -1209,9 +1232,34 @@ +@@ -1209,9 +1232,35 @@ const char *name = symtab_section->link->data + sym->st_name; unsigned type = ELFW(ST_TYPE)(sym->st_info); - int imp_sym = pe_find_import(pe->s1, sym); + int imp_sym; @@ -69,10 +69,11 @@ + imp_sym = pe_find_import(pe->s1, sym); + break; + } + } + } ++ tcc_free(modules); + } + if (0 == imp_sym) goto not_found;