We have a program that we would like to be able to dynamically load
functions into. It is c++ running on sparc solaris 8.
The scenario we have is that our application is given the command string
"foo", it looks to see if function "foo" currently exists in the system,
if not it looks in a directory to see if there is a file named "foo.o" (or
"foo.so" not sure what works best), if so it loads in the file then calls
the function foo.
My questions are.
1. Is there a way to dynamically load code at runtime.
and if so
2. Is there a way to find out the address of a function residing in the
above dynamically loaded code so that it can actually be executed.