diff lwasm/output.c @ 412:35a0b086bf4a

Added dummy .bank pseudo and fixed segfault in output for object target (on imported symbol)
author lost@l-w.ca
date Mon, 09 Aug 2010 00:37:46 -0600
parents c94436adce83
children 5cccf90bf838
line wrap: on
line diff
--- a/lwasm/output.c	Mon Aug 09 00:10:24 2010 -0600
+++ b/lwasm/output.c	Mon Aug 09 00:37:46 2010 -0600
@@ -493,6 +493,8 @@
 			lw_expr_t te;
 			line_t tl;
 			
+			if (ex -> se == NULL)
+				continue;
 			if (ex -> se -> section != s)
 				continue;
 			te = lw_expr_copy(ex -> se -> value);