# HG changeset patch # User lost # Date 1237756845 0 # Node ID 1a75121c3c3fb4231eb1fb92ab4a1389ac31e3be # Parent 7824f94c5786e2c5628e192a300069d4647db482 Yet again try to get importing undefined exports working diff -r 7824f94c5786 -r 1a75121c3c3f lwasm/pseudo.c --- a/lwasm/pseudo.c Sun Mar 22 20:07:37 2009 +0000 +++ b/lwasm/pseudo.c Sun Mar 22 21:20:45 2009 +0000 @@ -1082,7 +1082,7 @@ // the symbol better be defined at this point (pass 2) // local symbols cannot be exported nor can "global" symbols se = lwasm_find_symbol(as, l -> sym, -1); - if (!se && (as -> pragmas & PRAGMA_IMPORTUNDEFEXPORT)) + if ((!se || (se -> flags & SYMBOL_EXTERN)) && (as -> pragmas & PRAGMA_IMPORTUNDEFEXPORT)) { void *p; p = as -> csect; @@ -1136,6 +1136,7 @@ ex -> offset = se -> value; ex -> sym = lwasm_strdup(se -> sym); } +next: if (after == 1) { if (**p == ',')