comparison lwasm/section.c @ 459:ed7b8f74087d

Fix error handling sections for lwmod target.
author William Astle <lost@l-w.ca>
date Wed, 28 Feb 2018 18:41:26 -0700
parents 58cafa61ab40
children
comparison
equal deleted inserted replaced
458:3948c874901b 459:ed7b8f74087d
169 lw_free(sn); 169 lw_free(sn);
170 } 170 }
171 171
172 PARSEFUNC(pseudo_parse_endsection) 172 PARSEFUNC(pseudo_parse_endsection)
173 { 173 {
174 if (as -> output_format != OUTPUT_OBJ) 174 if (as -> output_format != OUTPUT_OBJ && as -> output_format != OUTPUT_LWMOD)
175 { 175 {
176 lwasm_register_error(as, l, E_SECTION_TARGET); 176 lwasm_register_error(as, l, E_SECTION_TARGET);
177 return; 177 return;
178 } 178 }
179 179