changeset 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 3948c874901b
children 3d53f2e8d0e0
files lwasm/section.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/section.c	Sat Feb 17 00:13:46 2018 -0700
+++ b/lwasm/section.c	Wed Feb 28 18:41:26 2018 -0700
@@ -171,7 +171,7 @@
 
 PARSEFUNC(pseudo_parse_endsection)
 {
-	if (as -> output_format != OUTPUT_OBJ)
+	if (as -> output_format != OUTPUT_OBJ && as -> output_format != OUTPUT_LWMOD)
 	{
 		lwasm_register_error(as, l, E_SECTION_TARGET);
 		return;