Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Forge gcc output an ELF object file under Windows

584 views
Skip to first unread message

Martin

unread,
Apr 3, 2009, 6:55:43 AM4/3/09
to
I've been googling for some time and I couldn't find a way of
explicitly telling gcc to produce an ELF object file under Windows. It
always creates a pe-i386. I'm not sure if such an option exists.

Doug McIntyre

unread,
Apr 3, 2009, 8:06:26 AM4/3/09
to

It depends on your gcc package. You probably have to find a
"cross-compiler" setup of GCC, rather than a native gcc install. A
native install would produce a binary that would be useful to the
native OS of the box.

OOTH, if you have a cross-compiler for whatever target/cpu/machine you
are trying to use, most likely one of the output options will be the
object format you are looking for, even if it wouldn't run on the OS
you are running the compiler on (ie. ELF on windows).

Rugxulo

unread,
Apr 16, 2009, 4:00:47 PM4/16/09
to
Hi,

As mentioned, most Windows tools don't use ELF (although the Win32
port of TinyC does if you compile without linking).

http://www.bellard.org/tcc/

0 new messages