-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi sunfish!
After all the fixes I proposed to get eyra and mustang to work, my tiny miniquad project is still incapable of compiling because dlopen, dlclose and posix_fallocate are all missing. Unfortunately after careful reading I've noticed that dynamic linking is still completely unsupported, so the chance of getting any project involving miniquad or similar crates that bind to system libraries is very minimal. That said, posix_fallocate doesn't seem related to dynamic linking at all, so at least that could be a starting point.
If I get time, I might look onto the dynamic linking implementation and see what can I do, but until then my most useful contribution will be this issue.
Notes
posix_fallocate is defined in fcntl.h
dlopen, dlclose and all the other dlfcn.h functions are already defined in rust inside relibc.
Unfrotunately, I haven't studied the project enough, and something tells me that dynamic linking is quite a bit more challenging to implement than just those functions (I would really love to know what's missing to actually make dynamic linking work), but at least we have a publicly available pure rust implementation as a starting point.