diff 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
line wrap: on
line diff
--- a/lwlink/link.c	Sun Aug 16 18:34:13 2009 +0000
+++ b/lwlink/link.c	Tue Sep 15 03:16:17 2009 +0000
@@ -373,6 +373,9 @@
 			}
 			else
 			{
+				// is it a zero-width link?
+				if (rl -> flags & RELOC_0BIT)
+					continue;
 				// put the value into the relocation address
 				rval = lw_expr_get_value(rl -> expr);
 				if (rl -> flags & RELOC_8BIT)