alacarte linking (Dave Long)

This commit is contained in:
bellard
2003-04-28 22:06:38 +00:00
parent 71f119fe25
commit c4e6b2e9be
2 changed files with 63 additions and 7 deletions

4
tcc.c
View File

@ -398,6 +398,9 @@ struct TCCState {
/* if true, static linking is performed */
int static_link;
/* if true, only link in referenced objects from archive */
int alacarte_link;
/* warning switches */
int warn_write_strings;
int warn_unsupported;
@ -9207,6 +9210,7 @@ TCCState *tcc_new(void)
s->dynsymtab_section = new_symtab(s, ".dynsymtab", SHT_SYMTAB, SHF_PRIVATE,
".dynstrtab",
".dynhashtab", SHF_PRIVATE);
s->alacarte_link = 1;
return s;
}