Skip to contentSkip to conversation

Loading shared libraries in assembly

DISCUSSION Jason Borden 2 participants 2 messages Jul 19, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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