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

Modloader should probably be a shared library that chainloads mods #6

Open
j005u opened this issue May 25, 2022 · 0 comments
Open

Modloader should probably be a shared library that chainloads mods #6

j005u opened this issue May 25, 2022 · 0 comments

Comments

@j005u
Copy link
Contributor

j005u commented May 25, 2022

Rather than loading each modification as a .so individually modloader should be the only thing getting LD_PRELOADED and it should chainload the mods.

A naive approach of dl_open() on each of the .so-s does not work because the symbols don't become visible to the necessary context. Attempts at setting the context properly have failed because our related headers don't have the necessary GNU extensions.

This would allow for better error management and probably many other benefits.

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

1 participant