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

9 Replies, 1821 Views

For 'how do i find where .text coomes from in rust', I’d suggest using `cargo build --release` and then `objdump -h your_binary`. This’ll list all sections, including .text, and you can see where it’s coming from.

Also, `cargo-bloat` is great for seeing which crates are bloating your .text section.

.text is just the executable code part of the binary. In Rust, it’s all your compiled functions and such. Hope that clears it up!

Messages In This Thread



Users browsing this thread: 1 Guest(s)