Skip to content

Commit 3710584

Browse files
authored
Merge pull request #12540 from JojoS62/fix-lto-unknown-messages
fix for suppress 'unknown object name' messages from memap.py
2 parents 9d3b768 + a33d622 commit 3710584

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/memap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class _GccParser(_Parser):
113113
)
114114
RE_STD_SECTION = re.compile(r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$')
115115
RE_FILL_SECTION = re.compile(r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$')
116+
RE_TRANS_FILE = re.compile(r'^(.+\/|.+\.ltrans.o(bj)?)$')
116117
OBJECT_EXTENSIONS = (".o", ".obj")
117118

118119
ALL_SECTIONS = (
@@ -148,6 +149,9 @@ def parse_object_name(self, line):
148149
149150
return value - an object file name
150151
"""
152+
if re.match(self.RE_TRANS_FILE, line):
153+
return '[misc]'
154+
151155
test_re_mbed_os_name = re.match(self.RE_OBJECT_FILE, line)
152156

153157
if test_re_mbed_os_name:

0 commit comments

Comments
 (0)