javierhonduco / lightswitch

CPU profiler for Linux written in Rust
MIT License
7 stars 3 forks source link

Use as load address the first mapping for a file #38

Closed javierhonduco closed 6 months ago

javierhonduco commented 6 months ago

This is still not a totally correct calculation, some applications such as Rust + musl get their executable segments loaded in a way that we don't recognise yet, but this fixes cases where the loader decides to split the image in more than 2 segments.

Test Plan

image