From 6804361d76032ceec8e5ee5da0e3ae0479503bad Mon Sep 17 00:00:00 2001 From: Deepika Date: Tue, 10 Oct 2017 16:43:21 -0500 Subject: [PATCH] Build failed as code section was not included in map. Fix by Jimmy --- tools/memap.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/memap.py b/tools/memap.py index a2efd0e230..0b468f8a59 100644 --- a/tools/memap.py +++ b/tools/memap.py @@ -274,9 +274,13 @@ class MemapParser(object): section = '.data' elif test_re_armcc.group(3) == 'Zero': section = '.bss' + elif test_re_armcc.group(3) == 'Code': + section = '.text' else: - print "Malformed input found when parsing armcc map: %s" %\ - line + print "Malformed input found when parsing armcc map: %s, %r" %\ + (line, test_re_armcc.groups()) + + return ["", 0, ""] # check name of object or library object_name = self.parse_object_name_armcc(\