fix "tcc test.c -Wl,,--oformat,binary"
commit576aeb3aa933af4114cc2ca4e64794e85f528f0e
authorseyko <seyko2@gmail.com>
Sun, 3 May 2015 11:17:18 +0000 (3 14:17 +0300)
committerseyko <seyko2@gmail.com>
Sun, 3 May 2015 11:17:18 +0000 (3 14:17 +0300)
tree792eeeafd1dfe955b821429b19636e9e43ed8385
parent2ba219f781a304112398cc37fb382c762a1c7cf4
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
libtcc.c
tcc.c