3 ms·
> You missed the point: using "shared objects" would have to be explicit with "dlopen/dlsym/dlclose'. dlopen and friends are function calls that you cannot ev
by ptsneves 4y ago
> You missed the point: using "shared objects" would have to be explicit with "dlopen/dlsym/dlclose'.
dlopen and friends are function calls that you cannot evaluate build time. Actually not even at runtime as they are by nature dynamic and conditionally dlopen is a thing. Any shared object dependency tracking would be impossible or a new standard would be required.
Also dlopen is a POSIX standard. ELFs are used in many other places non POSIX.
> Mixing static linking with dynamic linking was not a good idea in the first place, and I mean it.
Why was it not a good idea? This happens all the time, especially the code that is at the very first executable address of the elf until some libc prepares things is arguably statically linked.
> [...] but to go something like NGELF [...]
Sounds interesting. Could you paste a link? I could not find it in google.