comparison lwlink/trunk/src/link.c @ 124:4ac96c697ef0

Corrected errors with parsing script and object files
author lost
date Fri, 23 Jan 2009 04:03:37 +0000
parents 7bc853cb2ca9
children 269ef87192ad
comparison
equal deleted inserted replaced
123:6084a3859fb4 124:4ac96c697ef0
229 s = resolve_sym(linkscript.execsym, 0, NULL); 229 s = resolve_sym(linkscript.execsym, 0, NULL);
230 linkscript.execaddr = lw_expr_get_value(s); 230 linkscript.execaddr = lw_expr_get_value(s);
231 lw_expr_stack_free(s); 231 lw_expr_stack_free(s);
232 } 232 }
233 233
234 for (sn = 0; nsects; sn++) 234 for (sn = 0; sn < nsects; sn++)
235 { 235 {
236 for (rl = sectlist[sn].ptr -> incompletes; rl; rl = rl -> next) 236 for (rl = sectlist[sn].ptr -> incompletes; rl; rl = rl -> next)
237 { 237 {
238 // do a "simplify" on the expression 238 // do a "simplify" on the expression
239 rval = lw_expr_reval(rl -> expr, resolve_sym, sectlist[sn].ptr); 239 rval = lw_expr_reval(rl -> expr, resolve_sym, sectlist[sn].ptr);