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

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.
Post Reply
Stutav
Posts: 1
Joined: Tue Nov 23, 2021 7:54 pm
Libera.chat IRC: stutav

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

Post 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!
Attachments
linker.ld
(960 Bytes) Downloaded 240 times
boot.asm
(3.94 KiB) Downloaded 220 times
kernel.c
(3.64 KiB) Downloaded 221 times
Post Reply