comparison lwlink/trunk/src/readfiles.c @ 127:44dd2f2e42a7

Fixed reading object file incomplete references table
author lost
date Fri, 23 Jan 2009 05:49:16 +0000
parents 269ef87192ad
children d25dd04c2af9
comparison
equal deleted inserted replaced
126:269ef87192ad 127:44dd2f2e42a7
270 exit(1); 270 exit(1);
271 } 271 }
272 lw_expr_stack_push(rp -> expr, term); 272 lw_expr_stack_push(rp -> expr, term);
273 lw_expr_term_free(term); 273 lw_expr_term_free(term);
274 } 274 }
275 // skip the NUL
276 NEXTBYTE();
277
278 // fetch the offset
279 rp -> offset = CURBYTE() << 8;
280 NEXTBYTE();
281 rp -> offset |= CURBYTE() & 0xff;
282 NEXTBYTE();
275 } 283 }
276 // skip the NUL terminating the relocations 284 // skip the NUL terminating the relocations
277 NEXTBYTE(); 285 NEXTBYTE();
278 286
279 // now set code location and size and verify that the file 287 // now set code location and size and verify that the file