comparison lwasm/section.c @ 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 7317fbe024af
children fc8386b13399
comparison
equal deleted inserted replaced
153:83b7b4ce3bbd 154:5ac1c4cd81a7
125 as -> sections = s; 125 as -> sections = s;
126 } 126 }
127 127
128 lw_expr_destroy(l -> addr); 128 lw_expr_destroy(l -> addr);
129 l -> addr = lw_expr_copy(s -> offset); 129 l -> addr = lw_expr_copy(s -> offset);
130 130 lw_expr_destroy(l -> daddr);
131 l -> daddr = lw_expr_copy(s -> offset);
131 as -> csect = s; 132 as -> csect = s;
132 as -> context = lwasm_next_context(as); 133 as -> context = lwasm_next_context(as);
133 134
134 l -> len = 0; 135 l -> len = 0;
135 136