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 change
pull/8271/head
Jimmy Brisson 2018-09-27 10:33:33 -05:00
parent 45f59f88c3
commit d8b7b3a24a
1 changed files with 4 additions and 1 deletions

View File

@ -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):