aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-06-10 20:44:47 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-06-10 20:44:47 -0700
commit3ef57d33ffa0f04842246556f34004784f07eacd (patch)
treeef249606dbe9a72ddd6dba152f86a3f285c72760
parent2c1f0999e6b0d8dde47da6d110bab6ae64ea2411 (diff)
downloadabc80-3ef57d33ffa0f04842246556f34004784f07eacd.tar.gz
abc80-3ef57d33ffa0f04842246556f34004784f07eacd.tar.xz
abc80-3ef57d33ffa0f04842246556f34004784f07eacd.zip
bin2bac: convert entry from oct/hex if necessary
Not just the base address but also the entrypoint should be converted if necessary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xdata/bin2bac.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/bin2bac.pl b/data/bin2bac.pl
index 51f470a..7df1830 100755
--- a/data/bin2bac.pl
+++ b/data/bin2bac.pl
@@ -87,6 +87,7 @@ sub makebac($$$) {
($file, $org, $entry) = @ARGV;
$org = oct $org if ( $org =~ /^0/ );
+$entry = oct $entry if ( $entry =~ /^0/ );
open(FILE, '<:raw', $file) or die "$0: $file: $!\n";
$l = read(FILE, $dd, 65536);