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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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