Page 1 of 1

Higher Half with GRUB, "entry point isn't in a segment."

Posted: Tue Nov 23, 2021 8:09 pm
by Stutav
Hello! I'm new to OSDev, so excuse me if I'm not that great.

Anyway, I had just finished my GDT and paging, and I decided to go for a higher-half kernel. I tried every solution I could find off a quick Google search, however no matter what, it said "entry point isn't in a segment." In fact, I had gone back and taken it out, and still "entry point isn't in a segment." I was trying to figure out why it said this, even after I re-did all my code back to the original code. There is one possible explanation I have, and it's that Windows is maybe just giving up copying from WSL to Windows (I am using qemu on Windows, but everything else on Linux). However, this probably isn't the case (I checked with a SHA-1 checksum and they're the same). I would send the ISO, but it's too large to send. I've just sent the linker file, boot file, and kernel C file. If there's anything else you need, I would be happy to send it.

Have a nice day.

EDIT: Solved. A while back, I wasn't thinking and changed my linker to link into myos.elf, rather than myos.bin. Thanks!