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

9 Replies, 1826 Views

Hey there! I had the same question about 'how do i find where .text coomes from in rust'. Honestly, `cargo-bloat` is a lifesaver. It gives you a detailed breakdown of the binary, including the .text section.

Another tool I use is `llvm-objdump` if you’re on a system with LLVM installed. It’s like `objdump` but sometimes gives cleaner output for Rust binaries.

.text is just where your compiled code lives—functions, methods, etc. Rust doesn’t do anything special here, so it’s pretty standard.

Messages In This Thread



Users browsing this thread: 1 Guest(s)