get GCC producing ELF
get GCC producing ELF
normally i work in linux, but my internet is down there, so unfortunately i've to work in windows now.. to compile i use gcc and all the other stuff under a cygwin shell. how can I get gcc so far to produce ELF code?
Re:get GCC producing ELF
The included GCC in Cygwin supposedly produces bad ELFs, if it actually supports them at all. You will probably be better off downloading GCC and Binutils from the GNU FTP server and making a customised cross compiler.
Re:get GCC producing ELF
See GCC Cross-Compiler in the FAQ.
Every good solution is obvious once you've found it.
Re:get GCC producing ELF
Why do you need ELF? CygWin makes Win32 PE COFF files -- why won't that format work?
GRUB works with ELF or COFF or nearly anything else, and a PE file loader isn't much more difficult to write than an ELF loader.
Just wondering...
GRUB works with ELF or COFF or nearly anything else, and a PE file loader isn't much more difficult to write than an ELF loader.
Just wondering...
Re:get GCC producing ELF
..
Last edited by Perica on Tue Dec 05, 2006 9:41 pm, edited 1 time in total.
Re:get GCC producing ELF
I read that somewhere in this forum (MinGW32), the Cygwin linker doesn't support ELF at all as far as I can tell, "PE operations on non PE file"
Re:get GCC producing ELF
i'll build a cross-compiler.. what target do i have to use? i686-elf?
Re:get GCC producing ELF
The Cross Compiler target should of course be ELF, the type should be i686 unless you're testing on something lower. If you use the Cygwin compiler to build the cross compiler, the produced cross compiler will be dependant on the Cygwin DLLs but that doesn't really matter unless you try to use them outside of bash.