-
Notifications
You must be signed in to change notification settings - Fork 196
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
Android dlopen failed due to TLS_MODEL attribute #332
Comments
You can just change the define of TLS_MODEL to nothing, i.e |
@mjansson would you be able to land a change that approaches this (for Android) on top of an older tagged release? |
Merged #347 |
@mjansson I see, thanks. Didn't expect that to be merged, it would have been great if the title and description were rewritten to actually describe the problem and chosen solution though 🤷 |
I changed the actual commit to say Set TLS model on Android depending on target sdk |
Lovely, that should make it easier to find!
|
I am trying to run my project on an Android device. It fails with output like this:
The variable in question is the one with the
TLS_MODEL
macro inrpmalloc.c
. If I remove theTLS_MODEL
macro, then my project loads successfully and everything works as far as I can tell.Note that I am not building rpmalloc directly. I am using the version of it that is included with the Tracy profiler. I was told that I should ask the maintainers of rpmalloc about it (wolfpld/tracy#779).
What is your recommendation? Is it important for that variable to use
tls_model("initial-exec")
? If so, can you recommend a workaround to make the Android dynamic linker happy? Thanks.The text was updated successfully, but these errors were encountered: