Skip to content

Commit ae4e6dd

Browse files
author
mean
committed
ignore debug info and arm stuff to get the right numbers
1 parent a69b2e7 commit ae4e6dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

analyze_map.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class SectionSize():
4040
def total(self):
4141
return self.code + self.data
4242
def add_section(self, section, size):
43+
if section.startswith('.comment'):
44+
return
45+
if section.startswith('.debug'):
46+
return
47+
if section.startswith('.ARM.attributes'):
48+
return
4349
if section.startswith('.text'):
4450
self.code += size
4551
elif section != '.bss':

0 commit comments

Comments
 (0)