comparison lwlink/link.c @ 243:f9f01a499525 2.x

Added zero-width external references
author lost
date Tue, 15 Sep 2009 03:16:17 +0000
parents bae1e3ecdce1
children eb499c146c0d
comparison
equal deleted inserted replaced
242:848d55b181f0 243:f9f01a499525
371 fprintf(stderr, "Incomplete reference at %s:%s+%02X\n", sectlist[sn].ptr -> file -> filename, sectlist[sn].ptr -> name, rl -> offset); 371 fprintf(stderr, "Incomplete reference at %s:%s+%02X\n", sectlist[sn].ptr -> file -> filename, sectlist[sn].ptr -> name, rl -> offset);
372 symerr = 1; 372 symerr = 1;
373 } 373 }
374 else 374 else
375 { 375 {
376 // is it a zero-width link?
377 if (rl -> flags & RELOC_0BIT)
378 continue;
376 // put the value into the relocation address 379 // put the value into the relocation address
377 rval = lw_expr_get_value(rl -> expr); 380 rval = lw_expr_get_value(rl -> expr);
378 if (rl -> flags & RELOC_8BIT) 381 if (rl -> flags & RELOC_8BIT)
379 { 382 {
380 sectlist[sn].ptr -> code[rl -> offset] = rval & 0xff; 383 sectlist[sn].ptr -> code[rl -> offset] = rval & 0xff;