I attached the new code, linker script, and batch program.
(It is code.zip) The batch program executes nasm, gcc, ld-elf,
objcopy, and makeboot.
makeboot.exe is a modified program I created that combines the
bootloader and kernel files, and creates a valid ISO image from it.
I dont know what you use, so you may need to modify the script
a little.
Any C crashes kernel
- Attachments
-
- code.zip
- ELF compiled kernel and binaries
- (9.71 KiB) Downloaded 52 times
-
- Posts: 19
- Joined: Sat May 05, 2007 1:27 pm
I don't have ld-elf under Linux, nor do I have a makeboot. I tried linking with LD and got the "undefined reference to _main" again, so I tried without the underscore. It linked fine, and I just used cat to concatenate the bootloader and the kernel. After all that, it worked fine! Thanks for all of your help!