comparison 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
comparison
equal deleted inserted replaced
118:d450943305a7 119:8bc00221ae89
218 { 218 {
219 fprintf(stderr, "%s: bad script\n", scriptfile); 219 fprintf(stderr, "%s: bad script\n", scriptfile);
220 exit(1); 220 exit(1);
221 } 221 }
222 } 222 }
223 linkscript.lines[linkscript.nlines].sectname = lw_strdup(ptr); 223 if (ptr[0] == '*' && ptr[1] == '\0')
224 linkscript.lines[linkscript.nlines].sectname = NULL;
225 else
226 linkscript.lines[linkscript.nlines].sectname = lw_strdup(ptr);
224 linkscript.nlines++; 227 linkscript.nlines++;
225 } 228 }
226 else 229 else
227 { 230 {
228 fprintf(stderr, "%s: bad script\n", scriptfile); 231 fprintf(stderr, "%s: bad script\n", scriptfile);