sandwichdoge / catchOS

A small multitasking operating system for Intel i386 architecture.
MIT License
5 stars 1 forks source link

GRUB error 13 (invalid elf format) when code size exceeds 0x1000 bytes #2

Closed sandwichdoge closed 4 years ago

sandwichdoge commented 4 years ago

make && objdump -x kernel.elf Check .text section. If file offset of .text is over 0x2000, executable is considered invalid.

sandwichdoge commented 4 years ago

hexdump kernel.elf | grep 'b002 1bad'

Magic bit of multiboot is not within the first 8KiB of image.

sandwichdoge commented 4 years ago

Fixed in commit: https://github.com/sandwichdoge/Little-OS/commit/06c20a732bec8e28e28c8b35ec9c999e1b5f2113