aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorbellard <bellard>2003-04-28 22:06:38 +0000
committerbellard <bellard>2003-04-28 22:06:38 +0000
commitc4e6b2e9be2f96baee00b388265cd07e33fc48dc (patch)
tree2d50cb50e7f74ff4074ad091758586beffa54b5e /tcc.c
parent71f119fe258876e3d3dee8c4b5d4619758dc14a9 (diff)
downloadtinycc-c4e6b2e9be2f96baee00b388265cd07e33fc48dc.tar.gz
tinycc-c4e6b2e9be2f96baee00b388265cd07e33fc48dc.tar.bz2
alacarte linking (Dave Long)
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index 2ce29b1..649944b 100644
--- a/tcc.c
+++ b/tcc.c
@@ -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;
}