Any C crashes kernel

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.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

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.
Attachments
code.zip
ELF compiled kernel and binaries
(9.71 KiB) Downloaded 52 times
thewonderidiot
Posts: 19
Joined: Sat May 05, 2007 1:27 pm

Post by thewonderidiot »

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!
Post Reply