[project @ 2000-12-04 12:31:19 by simonmar]
[ghc-hetmet.git] / ghc / includes / Linker.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Linker.h,v 1.2 2000/12/04 12:31:20 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 #endif /* LINKER_H */