Loading shared libraries in assembly
I'm working on an assembly project using nasm, and I am interested in implementing a "plugin" type of architecture, where a plugin can be written as a shared library (.so) and loaded dynamically by the program to provide additional functionality. Currently the project is written using pure kernel system calls, making no reference to libc, and I'd like to keep it that way. My question is: is there a way to load shared libraries and their functions into an assembly program using kernel system calls without having to go through libdl and friends?
Thanks,
Jason
Quoted 3 lines · Jason Borden
My question is: is there a way to load shared libraries and their functions into an assembly program using kernel system calls without having to go through libdl and friends?
Yes, and this way is to implement your own loader.
Signature · 2 lines
Regards, Konstantin