Skip to content

Don't hard-code object sizes #378

@Ivan-Velickovic

Description

@Ivan-Velickovic

We need to know the object sizes for the target kernel being used inside the tool

pub fn fixed_size_bits(self, config: &Config) -> Option<u64> {
.

It is vital that these are the exact same as what is in the architecture specific constants.h. These values are often highly configuration dependent which results in the tool being fragile in this area.

We should instead change the kernel build system to output a format readable by the tool (e.g JSON instead of C header) so that we don't have to hard-code all these values, or we add another step in build_sdk.py to do the same thing.

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