diff lwasm/section.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 a741d2e4869f
children
line wrap: on
line diff
--- a/lwasm/section.c	Mon Aug 09 00:10:24 2010 -0600
+++ b/lwasm/section.c	Mon Aug 09 00:37:46 2010 -0600
@@ -53,7 +53,7 @@
 	if (as -> csect)
 	{
 		lw_expr_destroy(as -> csect -> offset);
-		as -> csect -> offset = l -> addr;
+		as -> csect -> offset = lw_expr_copy(l -> addr);
 		as -> csect = NULL;
 	}