From 576aeb3aa933af4114cc2ca4e64794e85f528f0e Mon Sep 17 00:00:00 2001 From: seyko Date: Sun, 3 May 2015 14:17:18 +0300 Subject: fix "tcc test.c -Wl,,--oformat,binary" set linker options only when "s->output_type == TCC_OUTPUT_EXE" otherwise tcc will produce a wrong object file --- tcc.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index aacbd42..a0b1c70 100644 --- a/tcc.c +++ b/tcc.c @@ -264,9 +264,6 @@ int main(int argc, char **argv) return 1; } - if (s->output_type == 0) - s->output_type = TCC_OUTPUT_EXE; - if (s->option_m) exec_other_tcc(s, argv, s->option_m); -- cgit v1.3.1