Skip to content

Commit a33d622

Browse files
committed
suppress 'unknown object name' messages
by using the -lto option on gcc and windows, many messages like above are produced. removed by ignoring .ltrans.o files
1 parent 06b22d9 commit a33d622

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)