2 ms·
I suspect it is because they get really hairy. Loading ELFs and processing relocations is actually not too bad. It’s fun after the initial learning curve. Th
by BobbyTables2 1y ago
I suspect it is because they get really hairy.
Loading ELFs and processing relocations is actually not too bad. It’s fun after the initial learning curve.
Then one has to worry about handling of “dlopen” and the loader creating the data structures it cares about. Yuck!!!
It’s kinda a shame because the glibc loader is a bit bloated with all the audit and preload handling. Great for flexibility, not for security.
- matheusmoreira 1y agoIt's hard to describe how complex this stuff is. Shared object loaders are essentially primitive package managers, topologically sortinf dependencies and everything... https://blogs.oracle.com/solaris/post/init-and-fini-processing-who-designed-this https://blogs.oracle.com/solaris/post/init-and-fini-processi...