Cygwin?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
osteron

Cygwin?

Post by osteron »

Anyone using cygwin for OS development on XP?

I understand that the linker can't handle ELF executables with out being 'patched' - where can I download this patch?

Do I need to compile my kernel in ELF format? I am coming from a linux background. If not which format?anyone got a simple kernel that they develop under cygwin - so I can see the linker script, makefile? I want use GRUB as the bootloader btw.

- Any help welcome.
Dave_Hunt

Re:Cygwin?

Post by Dave_Hunt »

I'm using cygwin with XP. What I do is link to standard exe format and then use objcopy to create an elf format executable. The standard objcopy included with the cygwin package supports elf.
Ozguxxx

Re:Cygwin?

Post by Ozguxxx »

Hi iam using gcc and i am a complete strager to cygwin. I need someone to compare them. Thanx...
Dave_Hunt

Re:Cygwin?

Post by Dave_Hunt »

Cygwin uses the gcc compiler. Cygwin is a unix-like environment for development and includes all of the standard GNU development tools.
osteron

Re:Cygwin?

Post by osteron »

Thanks Dave.
I'll give that a go, do you have to set anything special with the linker script? Any samples?
Cheers.
Dave_Hunt

Re:Cygwin?

Post by Dave_Hunt »

Nothing special. I've had no problems using any of the gcc/ld examples mentioned here. The only caveat is the lack of built-in ELF support in the linker. But as mentioned above, objcopy takes care of that.
Post Reply