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

ERL-571: relax undefined symbol checks for nifs on dlopen #3569

Open
OTP-Maintainer opened this issue Feb 25, 2018 · 1 comment
Open

ERL-571: relax undefined symbol checks for nifs on dlopen #3569

OTP-Maintainer opened this issue Feb 25, 2018 · 1 comment
Assignees
Labels
enhancement help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM

Comments

@OTP-Maintainer
Copy link

OTP-Maintainer commented Feb 25, 2018

Original reporter: vans163
Affected version: Not Specified
Component: erts
Migrated from: https://bugs.erlang.org/browse/ERL-571


https://stackoverflow.com/questions/27868890/undefined-symbols-on-erlang-nif-shared-library

Some libraries we use ship with undefined symbols by nature. And they are so huge it will cost significant resources to fix all the undefined symbols.

Is it possible to add an option to determine how dlopen gets called RTLD_NOW | RTLD_GLOBAL vs RTLD_LAZY?

@OTP-Maintainer
Copy link
Author

OTP-Maintainer commented Feb 26, 2018

sverker said:

This is not a high priority for us right now, but it seems like a reasonable feature so a PR is welcome.

I think such option should be passed as a third argument to erlang:load_nif.
What would the option be called, maybe {symbols, now | lazy}?
What would happen if not supported (Windows)?

@OTP-Maintainer OTP-Maintainer added enhancement help wanted Issue not worked on by OTP; help wanted from the community team:VM Assigned to OTP team VM priority:low labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Issue not worked on by OTP; help wanted from the community priority:low team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

2 participants