I have scons3 installed on my system which results in all scons tools being executed as Python3.
This causes a problem in utils_buildsize.py because the section.name returned by elftools is not decoded.
Changing line 41 to:
"name": section.name.decode('ASCII'),
fixes the problem under Python3.
Does anyone know if this also works for legacy Python?