Skip to content

Commit 41b697b

Browse files
authored
Merge pull request #5734 from deepikabhavnani/code_map_file
Build failed as code section was not included in map.
2 parents 9cce4d2 + 6804361 commit 41b697b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/memap.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,13 @@ def parse_section_armcc(self, line):
274274
section = '.data'
275275
elif test_re_armcc.group(3) == 'Zero':
276276
section = '.bss'
277+
elif test_re_armcc.group(3) == 'Code':
278+
section = '.text'
277279
else:
278-
print "Malformed input found when parsing armcc map: %s" %\
279-
line
280+
print "Malformed input found when parsing armcc map: %s, %r" %\
281+
(line, test_re_armcc.groups())
282+
283+
return ["", 0, ""]
280284

281285
# check name of object or library
282286
object_name = self.parse_object_name_armcc(\

0 commit comments

Comments
 (0)