From 7a520fee48d7e35a8b484d1b897b74878ade9ef2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 1 Jan 2015 14:54:55 +0000 Subject: [PATCH] binprep: hook the binmunge extensions up, move the analyzer into the other path Needless to say the analyzer gets completely confused when facing a banked binary --- Kernel/tools/binprep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kernel/tools/binprep b/Kernel/tools/binprep index 974bd4a1..d815dd6a 100755 --- a/Kernel/tools/binprep +++ b/Kernel/tools/binprep @@ -1,8 +1,11 @@ #!/bin/sh tools/bihx fuzix.ihx if grep -q _STUBS fuzix.map ; then - tools/bmunge + BASE=`grep "s__STUBS " fuzix.map |cut -b10-13` + LEN=`grep "l__STUBS " fuzix.map |cut -b10-13` + tools/binmunge $BASE-$LEN else + tools/analysemap fuzix.tmp tools/binman fuzix.tmp fuzix.map fuzix.bin fi -- 2.34.1