Unix Programming - Re: Possible to do the equivalent of dlopen with an executable

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2006 > Re: Possible to do the equivalent of dlopen with an executable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Possible to do the equivalent of dlopen with an executable
Paul Pluzhnikov

2006-07-21, 1:20 pm

Alan Coopersmith <alanc@alum.calberkeley.org> writes:

> Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes in comp.unix.solaris:

....
> |All you have to do is "pretend" that your executable is the dynamic
> |linker (/lib/ld.so.1) and load (mmap) the executable yourself...

....
> XFree86 did this for the driver modules.


Interesting. I never looked at that code.

Did it actually implement complete ld.so equivalent, or did it
"cheat" by resolving all references at driver load time (equivalent
of LD_BIND_NOW)? Were the modules in ELF, or some other more
convenient and simpler format?

Thanks,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com