Mercurial > hg > index.cgi
comparison lwlink/script.c @ 183:c6a38fd8bd33
Added --entry option for lwlink
author | lost@l-w.ca |
---|---|
date | Thu, 22 Dec 2011 18:01:59 -0700 |
parents | 3b58d76ea032 |
children | d389adbcc4ab |
comparison
equal
deleted
inserted
replaced
182:e0cc66fd0551 | 183:c6a38fd8bd33 |
---|---|
324 lw_free(line); | 324 lw_free(line); |
325 } | 325 } |
326 | 326 |
327 if (scriptfile || nscriptls) | 327 if (scriptfile || nscriptls) |
328 lw_free(oscript); | 328 lw_free(oscript); |
329 | |
330 if (entrysym) | |
331 { | |
332 int eaddr; | |
333 char *ptr2; | |
334 | |
335 lw_free(linkscript.execsym); | |
336 | |
337 eaddr = strtol(entrysym, &ptr2, 0); | |
338 if (*ptr2) | |
339 { | |
340 linkscript.execaddr = -1; | |
341 linkscript.execsym = lw_strdup(entrysym); | |
342 } | |
343 else | |
344 { | |
345 linkscript.execaddr = eaddr; | |
346 linkscript.execsym = NULL; | |
347 } | |
348 | |
349 } | |
329 } | 350 } |