Answer the question
In order to leave comments, you need to log in
How to generate an elf file using tiny c compiler in windows?
The command C:\\tools\tcc\tcc -nostdlib main.c
creates an executable file of PE format, but how to get an executable file of ELF format?
Looked at the documentation, it says:
`-Wl,--oformat,fmt'
Use fmt as output format. The supported output formats are:
elf32-i386
ELF output format (default)
binary
Binary image (only for executable output)
coff
COFF output format (only for executable output for TMS320C67xx target)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question