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

9 Replies, 1827 Views

Wow, thanks everyone for the awesome tips! I tried `cargo-bloat` and it’s exactly what I needed for 'how do i find where .text coomes from in rust'. The breakdown is super clear, and I can see which crates are contributing to the .text section.

I also gave `readelf -S` a shot, and it’s super handy for getting a quick overview of the sections.

Quick follow-up though—anyone know if there’s a way to optimize the .text section size? Like, are there specific compiler flags or crates that help reduce it? Thanks again, y’all are the best! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)