Skip to content

[scons3] buildsize: decode section name #2

@ekiwi

Description

@ekiwi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions