summaryrefslogtreecommitdiff
path: root/includes/Linker.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Linker.h')
-rw-r--r--includes/Linker.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/includes/Linker.h b/includes/Linker.h
new file mode 100644
index 0000000000..bb1a4c251f
--- /dev/null
+++ b/includes/Linker.h
@@ -0,0 +1,30 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2000
+ *
+ * RTS Object Linker
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef LINKER_H
+#define LINKER_H
+
+/* initialize the object linker */
+void initLinker( void );
+
+/* lookup a symbol in the hash table */
+void *lookupSymbol( char *lbl );
+
+/* delete an object from the pool */
+HsInt unloadObj( char *path );
+
+/* add an obj (populate the global symbol table, but don't resolve yet) */
+HsInt loadObj( char *path );
+
+/* resolve all the currently unlinked objects in memory */
+HsInt resolveObjs( void );
+
+/* load a dynamic library */
+char *addDLL( char* dll_name );
+
+#endif /* LINKER_H */