From df14f1267545b9c935022584ee1931ea55b4e9b6 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 15 Jul 2020 14:08:14 -0400 Subject: [PATCH] mkinfo: Make memory size computation more accurate * imx233 had disjoint memory map * hosted binaries not computing start address properly Change-Id: Ia45571e0c41f07f1d4f34f6e1a0067dcac530148 --- tools/mkinfo.pl | 6 ++++++ 1 file changed, 6 insertions(+) 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);