summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-17 13:42:52 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-17 13:42:52 +0000
commite251df9089c9ca2de14d0c8ab8a305dc9e1cd6c5 (patch)
tree3ab0183c5264994492c51aeaa83382fedb0d9783 /utils
parent16f8224269db1b905415eeebd06272dd5aced2fe (diff)
downloadrockbox-e251df9089c9ca2de14d0c8ab8a305dc9e1cd6c5.tar.gz
rockbox-e251df9089c9ca2de14d0c8ab8a305dc9e1cd6c5.tar.bz2
rockbox-e251df9089c9ca2de14d0c8ab8a305dc9e1cd6c5.zip
Utils/Analysis/Find_Addr.pl: fix wrongly recognizing addresses as being in codec or plugin space when their addresses were invalid
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22379 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analysis/find_addr.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/analysis/find_addr.pl b/utils/analysis/find_addr.pl
index 0e8ef28c48..dd42ef6dd8 100755
--- a/utils/analysis/find_addr.pl
+++ b/utils/analysis/find_addr.pl
@@ -195,12 +195,13 @@ if($lookaddr != 0)
}
close MAPFILE;
- if($lookaddr >= $codec_addr && $lookaddr < $plugin_addr)
+ if($lookaddr >= $codec_addr && $lookaddr < $plugin_addr
+ && $codec_addr != 0)
{
# look for codec
%match = dynamic_space("codec", \@codecs);
}
- elsif($lookaddr >= $plugin_addr)
+ elsif($lookaddr >= $plugin_addr && $plugin_addr != 0)
{
# look for plugin
%match = dynamic_space("plugin", \@plugins);
@@ -268,4 +269,4 @@ Usage example:
Don't forget to build with -g !
EOF
;
-} \ No newline at end of file
+}