OSDev.org
https://forum.osdev.org/

Higher Half with GRUB, "entry point isn't in a segment."
https://forum.osdev.org/viewtopic.php?f=1&t=56001
Page 1 of 1

Author:  Stutav [ Tue Nov 23, 2021 8:09 pm ]
Post subject:  Higher Half with GRUB, "entry point isn't in a segment."

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 209 times
boot.asm [3.94 KiB]
Downloaded 200 times
kernel.c [3.64 KiB]
Downloaded 181 times

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/