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