The function dld_link
dynamically links in the named relocatable
object or library file into memory.
Storage for the text and data of the dynamically linked modules is
allocated using malloc
. In other words, they are kept in the
heap of the executing process.
After all modules are loaded, dld_link
resolves as many external
references as possible. Note that some symbols might still be undefined
at this stage, because the modules defining them have not yet been
loaded.
If the specified module is linked successfully, dld_link
returns
0; otherwise, it returns a non-zero error code (see section Definition of Error Codes).
Go to the first, previous, next, last section, table of contents.