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

ctor doesn't work on apple arm64? #206

Open
aviramha opened this issue Mar 31, 2022 · 2 comments
Open

ctor doesn't work on apple arm64? #206

aviramha opened this issue Mar 31, 2022 · 2 comments

Comments

@aviramha
Copy link

Hey,
I'm currently trying to use ctor on my local M1 Pro. It seems that ctor doesn't run (even though binary is loaded).
The way I tested it is taking the example and running it with DYLD_INSERT_LIBRARIES.
I do know that that env var doesn't work with any binary, so I tested it with another binary that I compiled (and saw that the library was loaded).
I also tried testing using gcc and not rust and same behavior so it's not implementation probably - I'm wondering if anyone knows if anything changed - did they remove the feature from the loader?

@mmastrac
Copy link
Owner

Try this with cargo +nightly --features=used_linker. This may help.

@clarkmcc
Copy link

Sadly, this is not working on my M1 Pro on nightly using the used_linker feature flag.

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

3 participants