aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libtcc.h b/libtcc.h
index df066bd..6f49baa 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -63,10 +63,16 @@ int tcc_add_library(TCCState *s, const char *libraryname);
/* add a symbol to the compiled program */
int tcc_add_symbol(TCCState *s, const char *name, unsigned long val);
-/* output an executable file */
+/* output an executable, library or object file */
int tcc_output_file(TCCState *s, const char *filename);
/* link and run main() function and return its value */
int tcc_run(TCCState *s, int argc, char **argv);
+/* do all relocations (needed before using tcc_get_symbol()) */
+void tcc_relocate(TCCState *s);
+
+/* return symbol value or error */
+void *tcc_get_symbol(TCCState *s, const char *name);
+
#endif