Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust toolchain support #89

Open
stephenrkell opened this issue Mar 6, 2024 · 1 comment
Open

Rust toolchain support #89

stephenrkell opened this issue Mar 6, 2024 · 1 comment

Comments

@stephenrkell
Copy link
Owner

It'd be nice to be able to introspect on memory that is allocated by/for Rust code. Currently I don't have a clear enough handle on rustc or cargo to know how best to do this, although I'm working on piecing together the necessary understanding. (Someone told me that Rust programs don't go through a linker?! That does not seem right.)

@jryans
Copy link
Contributor

jryans commented Mar 6, 2024

(Someone told me that Rust programs don't go through a linker?! That does not seem right.)

Rust definitely invokes the linker. See for example this mention in Rust Compiler Development Guide (partly linking to this so you're generally aware of the guide, which may be useful if you dive deeper into Rust tooling).

There is a TargetOptions struct for every target Rust supports, which includes info like the default linker and such.

You can also override the linker to be used via a codegen option (-C linker=<foo>).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants