diff options
| author | bellard <bellard> | 2002-09-08 22:46:32 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2002-09-08 22:46:32 +0000 |
| commit | d8ef07df04443465600f94e8c5d769899a2e4d27 (patch) | |
| tree | a3a860c837938f683eab08a40344fb5407815de3 /libtcc.h | |
| parent | 10f5d44f43cd6e93a17fb00aa63c79bb13fc0a81 (diff) | |
| download | tinycc-d8ef07df04443465600f94e8c5d769899a2e4d27.tar.gz tinycc-d8ef07df04443465600f94e8c5d769899a2e4d27.tar.bz2 | |
added tcc_relocate() and tcc_get_symbol()
Diffstat (limited to 'libtcc.h')
| -rw-r--r-- | libtcc.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
