grub 13 error and crazy hex in my kernel
Posted: Wed Apr 20, 2011 7:01 pm
My kernel compiles okay, but I get the infernal "error 13: invalid or unsupported executable"
So I took a look at the hex, and in big endian the multi-boot header is at the very end of the executable. Don't know if that's good. I'm using a cross compiler on my Mac, and I don't know how to find the location of the binary where something starts in my hex editor (HexFiend). Anyway, just before the multiboot starts, there's some crap about the netwide assembler being built on an apple computer. In the binary.
Is my binary @$$-backwards or just clogged by a bad assembler?
Please comment if you want the binary to look at it in your own hex editor.
...I need to learn how to get more info out of hex (any help would be greatly appreciated! )
EDIT: Also, there are a hell of a lot of zero's inbetween each section of the binary (the contents of the object files)
Thanks,
Matt
So I took a look at the hex, and in big endian the multi-boot header is at the very end of the executable. Don't know if that's good. I'm using a cross compiler on my Mac, and I don't know how to find the location of the binary where something starts in my hex editor (HexFiend). Anyway, just before the multiboot starts, there's some crap about the netwide assembler being built on an apple computer. In the binary.
Is my binary @$$-backwards or just clogged by a bad assembler?
Please comment if you want the binary to look at it in your own hex editor.
...I need to learn how to get more info out of hex (any help would be greatly appreciated! )
EDIT: Also, there are a hell of a lot of zero's inbetween each section of the binary (the contents of the object files)
Thanks,
Matt