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.