From 374379ba0300aeaff7ada2eccbccc5ff27604d74 Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 22 Oct 2019 21:52:55 +0300 Subject: [PATCH] Skip .debug sections when generating memory use report --- platformio/builder/tools/piosize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/tools/piosize.py b/platformio/builder/tools/piosize.py index c1f6c4fc..75fe944b 100644 --- a/platformio/builder/tools/piosize.py +++ b/platformio/builder/tools/piosize.py @@ -96,7 +96,7 @@ def _is_valid_symbol(symbol_name, symbol_type, symbol_address): def _collect_sections_info(elffile): sections = {} for section in elffile.iter_sections(): - if section.is_null(): + if section.is_null() or section.name.startswith(".debug"): continue section_type = section["sh_type"]