Skip to content

Entry point offset should use segment virtual address #90

Description

@pekangas

The entry point in the ELF file header (e_entry) is specified as a virtual address. However the logic that calculates TBF init_fn_offset compares it to the segment's physical address, resulting in an incorrect offset for ELF files where physical and virtual addresses differ.

The fix is trivial; PR incoming as I sort out my workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions