diff options
| author | grischka <grischka> | 2009-04-16 22:03:03 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:02 +0200 |
| commit | 795f67428e7863353d7c466c211d8fcbb9e8c988 (patch) | |
| tree | a2c7195cb7a651325dce6f51c51b9a318664e7b3 /libtcc.h | |
| parent | 9a8b2912ed2e3de97cde5fec0e886a0660fe6b5f (diff) | |
| download | tinycc-795f67428e7863353d7c466c211d8fcbb9e8c988.tar.gz tinycc-795f67428e7863353d7c466c211d8fcbb9e8c988.tar.bz2 | |
alternative int tcc_relocate(TCCState *s1, void *ptr);
Diffstat (limited to 'libtcc.h')
| -rw-r--r-- | libtcc.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -84,9 +84,10 @@ int tcc_output_file(TCCState *s, const char *filename); tcc_relocate() before. */ int tcc_run(TCCState *s, int argc, char **argv); -/* do all relocations (needed before using tcc_get_symbol()). Return - non zero if link error. */ -int tcc_relocate(TCCState *s); +/* copy code into memory passed in by the caller and do all relocations + (needed before using tcc_get_symbol()). + returns -1 on error and required size if ptr is NULL */ +int tcc_relocate(TCCState *s1, void *ptr); /* return symbol value. return 0 if OK, -1 if symbol not found */ int tcc_get_symbol(TCCState *s, unsigned long *pval, const char *name); |
