|
|
|
|
|
by myrmidon
8 days ago
|
|
Sure, but if you want dynamic loading from your c stdlib (which is defensible IMO), and you want the behavior/implementation to match with the loader, then you need some kind of coupling somewhere no? You could have a very slim libdlopen that is used by both loader and libc, but I don't really see how that's any improvement/much different. |
|
So your C stdlib does not have dlopen() (in fact, it's not really part of C stdlib in POSIX anyway!) but you can link with standard OS-level ABI to OS-provided runtime services like "find a library and symbol from it" - AmigaOS did something similar.