From: Alan Cox Date: Thu, 1 Jan 2015 14:54:55 +0000 (+0000) Subject: binprep: hook the binmunge extensions up, move the analyzer into the other path X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7a520fee48d7e35a8b484d1b897b74878ade9ef2;p=FUZIX.git 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 --- 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