mkinfo: Make memory size computation more accurate

* imx233 had disjoint memory map
 * hosted binaries not computing start address properly

Change-Id: Ia45571e0c41f07f1d4f34f6e1a0067dcac530148
This commit is contained in:
Solomon Peachy 2020-07-15 14:08:14 -04:00
parent 058ba97f62
commit df14f12675

View file

@ -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);