Hey! So, I was also stuck on this a while back. For 'how do i find where .text coomes from in rust', I found `cargo-bloat` super helpful. It breaks down the binary and shows you where the .text section is coming from, like which crates or modules are contributing to it.
Also, `readelf -S your_binary` gives a clean breakdown of sections, including .text. Rust doesn’t really have a specific tool for this, but these work great.
If you’re curious about how .text works, it’s basically where all the compiled code lives. In Rust, it’s mostly your functions and stuff. Hope that helps!
Also, `readelf -S your_binary` gives a clean breakdown of sections, including .text. Rust doesn’t really have a specific tool for this, but these work great.
If you’re curious about how .text works, it’s basically where all the compiled code lives. In Rust, it’s mostly your functions and stuff. Hope that helps!
