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