dynamic loading

budd at arizona.UUCP budd at arizona.UUCP
Sat Jul 30 02:28:24 AEST 1983


To quote from the man page for ld(1) (Berkeley 4.1 flavor)

.B \-A
This option specifies incremental loading, i.e.
linking is to be done in a manner so that the resulting object
may be read into an already executing program.
The next argument is the name of a file whose symbol table will be
taken as a basis on which to define additional symbols.
Only newly linked material will be entered into the text and
data portions of
.BR a.out,
but the new symbol table will reflect
every symbol defined before and after the incremental load.
This argument must appear before any other object file in the argument list.
The
.B \-T
option may be used as well, and will be taken to mean that the
newly linked segment will commence at the corresponding address
(which must be a multiple of 1024).
The default value is the old value of _end.

(end of quote)

This seems to imply that dynamic linking is possible, but I have not
found anything that tells me how to do it.  What I would like would be
something like a system call "dycall(str, args)" or something that would
take the name given in str and generate a call, loading the file it is
found in if necessary (there might have to be another earlier call to
set things up).  Anybody know if this has been done or if there is an
easy way to do it?

--tim budd  (kpno!arizona!budd)



More information about the Comp.unix.wizards mailing list