1 /* -----------------------------------------------------------------------------
2 * $Id: Linker.h,v 1.4 2002/05/01 15:46:14 simonmar Exp $
4 * (c) The GHC Team, 2000
8 * ---------------------------------------------------------------------------*/
13 /* initialize the object linker */
14 void initLinker( void );
16 /* lookup a symbol in the hash table */
17 void *lookupSymbol( char *lbl );
19 /* delete an object from the pool */
20 HsInt unloadObj( char *path );
22 /* add an obj (populate the global symbol table, but don't resolve yet) */
23 HsInt loadObj( char *path );
25 /* resolve all the currently unlinked objects in memory */
26 HsInt resolveObjs( void );
28 /* load a dynamic library */
29 char *addDLL( char* dll_name );