diff options
| author | grischka <grischka> | 2012-04-18 18:48:26 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2012-04-18 18:48:26 +0200 |
| commit | f98c2306a0857ad3f8800f91e0554a27adc7f675 (patch) | |
| tree | ee3546311e05e66d1bce05d1cff80915f6b1b4df /libtcc.c | |
| parent | 32a411914b5bc5ad9549c43f25c737d891016f68 (diff) | |
| download | tinycc-f98c2306a0857ad3f8800f91e0554a27adc7f675.tar.gz tinycc-f98c2306a0857ad3f8800f91e0554a27adc7f675.tar.bz2 | |
libtcc: tcc_get_symbol uses the TCCState parameter
This allows using tcc_get_symbol on some other than the
current TCCState. (Suggested by David Mertens)
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1001,6 +1001,7 @@ LIBTCCAPI TCCState *tcc_new(void) ".strtab", ".hashtab", SHF_PRIVATE); strtab_section = symtab_section->link; + s->symtab = symtab_section; /* private symbol table for dynamic symbols */ s->dynsymtab_section = new_symtab(s, ".dynsymtab", SHT_SYMTAB, SHF_PRIVATE, |
