Mercurial > hg-old > index.cgi
diff src/script.c @ 301:376cc55361c7
section order and address resolution done
author | lost |
---|---|
date | Wed, 21 Jan 2009 05:45:25 +0000 |
parents | 48945dac8178 |
children | 13272197d278 |
line wrap: on
line diff
--- a/src/script.c Wed Jan 21 05:13:36 2009 +0000 +++ b/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