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
pull/12540/head
JojoS62 2020-02-29 15:10:37 +01:00
parent 06b22d91e3
commit a33d622f4f
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,7 @@ class _GccParser(_Parser):
)
RE_STD_SECTION = re.compile(r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$')
RE_FILL_SECTION = re.compile(r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$')
RE_TRANS_FILE = re.compile(r'^(.+\/|.+\.ltrans.o(bj)?)$')
OBJECT_EXTENSIONS = (".o", ".obj")
ALL_SECTIONS = (
@ -148,6 +149,9 @@ class _GccParser(_Parser):
return value - an object file name
"""
if re.match(self.RE_TRANS_FILE, line):
return '[misc]'
test_re_mbed_os_name = re.match(self.RE_OBJECT_FILE, line)
if test_re_mbed_os_name: