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)
This commit is contained in:
grischka
2012-04-18 18:48:26 +02:00
parent 32a411914b
commit f98c2306a0
3 changed files with 6 additions and 2 deletions

View File

@ -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,