Really fix linker issue with "debuginfo" variable.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 8 Oct 2009 12:51:24 +0000 (08:51 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 8 Oct 2009 12:51:24 +0000 (08:51 -0400)
The 16bit and 32bit code can't share debuginfo because it points to
    code and must point to 16bit code in 16bit mode.  Introduce two
    separate variables - one for 32bit mode and one for 16bit mode.

src/output.c

index b5b7d52f92595d617d59af951087501a30084504..ab2236b11a1417901299de4bfe36364171f44aab 100644 (file)
@@ -84,7 +84,11 @@ putc_debug(struct putcinfo *action, char c)
     debug_serial(c);
 }
 
-struct putcinfo debuginfo VAR16VISIBLE = { putc_debug };
+#if MODE16
+static struct putcinfo debuginfo VAR16 = { putc_debug };
+#else
+static struct putcinfo debuginfo = { putc_debug };
+#endif
 
 
 /****************************************************************