From 2d3b9559bf569f137cefb7f8386a0dc58e33c81f Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 18 Feb 2017 09:55:34 +0100 Subject: tcctools.c: integrate tiny_libmaker/_impdef usage: tcc -ar [rcsv] lib files... tcc -impdef lib.dll [-v] [-o lib.def] also: - support more files with -c: tcc -c f1.c f2.c ... - fix a bug which caused tcc f1.c f2.S to produce no asm - allow tcc -ar @listfile too - change prototype: _void_ tcc_set_options(...) - apply -Wl,-whole-archive when a librariy is given as libxxx.a also (not just for -lxxx) --- tccasm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tccasm.c') diff --git a/tccasm.c b/tccasm.c index b7d5881..0999a03 100644 --- a/tccasm.c +++ b/tccasm.c @@ -1005,6 +1005,7 @@ ST_FUNC int tcc_assemble(TCCState *s1, int do_preprocess) /* default section is text */ cur_text_section = text_section; ind = cur_text_section->data_offset; + nocode_wanted = 0; /* an elf symbol of type STT_FILE must be put so that STB_LOCAL symbols can be safely used */ -- cgit v1.3.1