5ab3c64c1fb28c3efd1bec3e0e5b504164e24b66
[ghc-hetmet.git] / ghc / rts / Linker.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Linker.h,v 1.4 2001/02/14 11:02:36 sewardj Exp $
3  *
4  * (c) The GHC Team, 2000
5  *
6  * RTS Object Linker
7  *
8  * ---------------------------------------------------------------------------*/
9
10 /* initialize the object linker */
11 void initLinker( void );
12
13 /* lookup a symbol in the hash table */
14 void *lookupSymbol( char *lbl );
15
16 /* delete an object from the pool */
17 HsInt unloadObj( char *path );
18
19 /* add an obj (populate the global symbol table, but don't resolve yet) */
20 HsInt loadObj( char *path );
21
22 /* resolve all the currently unlinked objects in memory */
23 HsInt resolveObjs( void );
24
25 /* load a dynamic library */
26 char *addDLL( char *path );