diff lwlink/readfiles.c @ 243:f9f01a499525 2.x

Added zero-width external references
author lost
date Tue, 15 Sep 2009 03:16:17 +0000
parents 03044871c575
children e8d70b95ec41
line wrap: on
line diff
--- a/lwlink/readfiles.c	Sun Aug 16 18:34:13 2009 +0000
+++ b/lwlink/readfiles.c	Tue Sep 15 03:16:17 2009 +0000
@@ -277,6 +277,18 @@
 				case 0xFF:
 					// a flag specifier
 					tt = CURBYTE();
+					switch (tt)
+					{
+					case 0x01:
+						rp -> flags |= RELOC_8BIT;
+						break;
+					case 0x02:
+						rp -> flags |= RELOC_0BIT;
+						break;
+					default:
+						fprintf(stderr, "%s (%s): unknown relocation flag (%02X)\n", fn -> filename, s -> name, tt);
+						exit(1);
+					}
 					rp -> flags = tt;
 					NEXTBYTE();
 					term = NULL;