sdldz80: only bank the code if the -r option is used
authorAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:55:50 +0000 (14:55 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 1 Jan 2015 14:55:50 +0000 (14:55 +0000)
This allows life to continue as normal for most platforms

Kernel/tools/bankld/lkrloc3.c

index 033057f..f8e7bb8 100644 (file)
@@ -171,6 +171,10 @@ static int bankmagic(struct areax *ax)
 {
         struct area *a = ax->a_bap;
         int c;
+
+        /* Not banked */
+        if (rflag == 0)
+                return 0;
         
         /* Hack: fix me up */
         if (strcmp(a->a_id, "_FONT") == 0)