diff lwlink/trunk/src/script.c @ 119:8bc00221ae89

section order and address resolution done
author lost
date Wed, 21 Jan 2009 05:45:25 +0000
parents d450943305a7
children 7bc853cb2ca9
line wrap: on
line diff
--- a/lwlink/trunk/src/script.c	Wed Jan 21 05:13:36 2009 +0000
+++ b/lwlink/trunk/src/script.c	Wed Jan 21 05:45:25 2009 +0000
@@ -220,7 +220,10 @@
 					exit(1);
 				}
 			}
-			linkscript.lines[linkscript.nlines].sectname = lw_strdup(ptr);
+			if (ptr[0] == '*' && ptr[1] == '\0')
+				linkscript.lines[linkscript.nlines].sectname = NULL;
+			else
+				linkscript.lines[linkscript.nlines].sectname = lw_strdup(ptr);
 			linkscript.nlines++;
 		}
 		else