From c0c743224a75f2093df5e6c15862841b37b88136 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 1 Jan 2015 14:55:50 +0000 Subject: [PATCH] sdldz80: only bank the code if the -r option is used This allows life to continue as normal for most platforms --- Kernel/tools/bankld/lkrloc3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/tools/bankld/lkrloc3.c b/Kernel/tools/bankld/lkrloc3.c index 033057fb..f8e7bb80 100644 --- a/Kernel/tools/bankld/lkrloc3.c +++ b/Kernel/tools/bankld/lkrloc3.c @@ -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) -- 2.34.1