summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 14:08:14 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-15 14:08:14 -0400
commitdf14f1267545b9c935022584ee1931ea55b4e9b6 (patch)
tree8309532b8976d8f6db36698f0fa785e87bd6a50e
parent058ba97f62a4a066440538a5d80b9e2699c397b3 (diff)
downloadrockbox-df14f1267545b9c935022584ee1931ea55b4e9b6.tar.gz
rockbox-df14f1267545b9c935022584ee1931ea55b4e9b6.tar.bz2
rockbox-df14f1267545b9c935022584ee1931ea55b4e9b6.zip
mkinfo: Make memory size computation more accurate
* imx233 had disjoint memory map * hosted binaries not computing start address properly Change-Id: Ia45571e0c41f07f1d4f34f6e1a0067dcac530148
-rwxr-xr-xtools/mkinfo.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mkinfo.pl b/tools/mkinfo.pl
index 6b12345305..463a10005e 100755
--- a/tools/mkinfo.pl
+++ b/tools/mkinfo.pl
@@ -55,6 +55,12 @@ sub mapscan {
elsif($_ =~ / +0x([0-9a-f]+) *_loadaddress = \./) {
$start = $1;
}
+ elsif($_ =~ / +0x([0-9a-f]+) *_dramcopystart = \./) {
+ $start = $1;
+ }
+ elsif($_ =~ / +0x([0-9a-f]+) *__start/) {
+ $start = $1;
+ }
}
close(M);