How do I find where .text comes from in Rust? Any tips or tools to trace it?

9 Replies, 1829 Views

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!

Messages In This Thread



Users browsing this thread: 1 Guest(s)