diff lwasm/section.c @ 385:cf8c92d70eb1

Various bugfixes
author lost@starbug
date Sun, 16 May 2010 11:50:00 -0600
parents cc154dc614fe
children a741d2e4869f
line wrap: on
line diff
--- a/lwasm/section.c	Sat May 15 20:46:04 2010 -0600
+++ b/lwasm/section.c	Sun May 16 11:50:00 2010 -0600
@@ -173,7 +173,10 @@
 	}
 	
 	if (l -> sym)
+	{
 		sym = lw_strdup(l -> sym);
+		l -> symset = 1;
+	}
 	
 	if (l -> sym)
 	{
@@ -190,6 +193,7 @@
 			/* do nothing */ ;
 		
 		sym = lw_strndup(*p, p2 - *p);
+		*p = p2;
 	}
 	if (!sym)
 	{
@@ -229,7 +233,10 @@
 	}
 	
 	if (l -> sym)
+	{
 		sym = lw_strdup(l -> sym);
+		l -> symset = 1;
+	}
 	
 	if (l -> sym)
 	{
@@ -246,6 +253,7 @@
 			/* do nothing */ ;
 		
 		sym = lw_strndup(*p, p2 - *p);
+		*p = p2;
 	}
 	if (!sym)
 	{