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

9 Replies, 1942 Views

Hey folks,
So I’ve been digging into some Rust code and hit a bit of a wall. I’m trying to figure out *how do i find where .text coomes from in rust*. Like, where’s that section actually coming from in the binary?

I’ve been poking around with `objdump` and `cargo build --verbose`, but it’s kinda messy. Anyone got tips or tools to make this easier? Maybe something like `nm` or `readelf`? Or is there a Rust-specific way to trace this?

Also, if anyone’s got a quick explanation of how .text works in Rust binaries, that’d be super helpful. I’m still getting the hang of this low-level stuff.

Thanks in advance! 🙏

Messages In This Thread
How do I find where .text comes from in Rust? Any tips or tools to trace it? - by - 20-10-2024, 09:17 AM



Users browsing this thread: 1 Guest(s)