[project @ 2004-02-12 02:04:59 by mthomas]
[ghc-hetmet.git] / ghc / includes / Linker.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Linker.h,v 1.4 2002/05/01 15:46:14 simonmar Exp $
3  *
4  * (c) The GHC Team, 2000
5  *
6  * RTS Object Linker
7  *
8  * ---------------------------------------------------------------------------*/
9
10 #ifndef LINKER_H
11 #define LINKER_H
12
13 /* initialize the object linker */
14 void initLinker( void );
15
16 /* lookup a symbol in the hash table */
17 void *lookupSymbol( char *lbl );
18
19 /* delete an object from the pool */
20 HsInt unloadObj( char *path );
21
22 /* add an obj (populate the global symbol table, but don't resolve yet) */
23 HsInt loadObj( char *path );
24
25 /* resolve all the currently unlinked objects in memory */
26 HsInt resolveObjs( void );
27
28 /* load a dynamic library */
29 char *addDLL( char* dll_name );
30
31 #endif /* LINKER_H */