From d8b7b3a24aff000597512a2016e4799edfe182c7 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Thu, 27 Sep 2018 10:33:33 -0500 Subject: [PATCH] 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 --- tools/memap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/memap.py b/tools/memap.py index 00c5aa36f5..3a1d134dc7 100644 --- a/tools/memap.py +++ b/tools/memap.py @@ -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):