changeset 154:5ac1c4cd81a7

Make sections behave correctly again with the update to support . and * for os9
author lost@l-w.ca
date Sat, 27 Aug 2011 23:16:50 -0600
parents 83b7b4ce3bbd
children 1571e150f1fd
files lwasm/section.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/section.c	Sat Aug 27 00:23:19 2011 -0600
+++ b/lwasm/section.c	Sat Aug 27 23:16:50 2011 -0600
@@ -127,7 +127,8 @@
 	
 	lw_expr_destroy(l -> addr);
 	l -> addr = lw_expr_copy(s -> offset);
-	
+	lw_expr_destroy(l -> daddr);
+	l -> daddr = lw_expr_copy(s -> offset);
 	as -> csect = s;
 	as -> context = lwasm_next_context(as);