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.
PE Operations on non PE file.
collect2: ld returned 1 exit status
make: *** [kernel32] Error 1
With cygwin, ld isnt compiled to support elf out the gate. You would have to either cross-compile it to supprt elf or what I have done is set the OUTPUT_FORMAT in the linker script to "pe-i386" and compile the kernel to .exe format.