mirror of https://github.com/ARMmbed/mbed-os.git
Tools, memap: Silence warnings that we handled correctly
### Description Memap will create a bunch of warnings about "Unknown object name" when parsing a map file created for the RZ_A1H and the GR_Peach. Theses warnings are sperious; the information in these sections does not belong to an object file. This PR silences these warnings. Fixes #6258 ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Breaking changepull/8271/head
parent
45f59f88c3
commit
d8b7b3a24a
|
@ -142,7 +142,10 @@ class _GccParser(_Parser):
|
|||
return join('[lib]', test_re_obj_name.group(2),
|
||||
test_re_obj_name.group(3))
|
||||
else:
|
||||
print("Unknown object name found in GCC map file: %s" % line)
|
||||
if (not line.startswith("LONG") and
|
||||
not line.startswith("linker stubs")):
|
||||
print("Unknown object name found in GCC map file: %s"
|
||||
% line)
|
||||
return '[misc]'
|
||||
|
||||
def parse_section(self, line):
|
||||
|
|
Loading…
Reference in New Issue