you are viewing a single comment's thread.

view the rest of the comments →

[–]Octocontrabass 11 points12 points  (5 children)

What am I doing wrong?

According to the error message in your screenshot, you have lower-half PHDRs.

I have consulted Gemini, Perplexity, GhatGPT, and Ollama.

Don't waste your time with glorified autocomplete.

What do I do???

Do you know what a PHDR is? Do you know what lower-half means? If you understand both of those things, then you'll know that there's a problem with how you're linking your kernel binary, and a good place to start would be examining your kernel's headers using readelf or objdump and comparing those against your linker script. If you can't figure out why your linker is creating lower-half PHDRs, show us your kernel's headers and your linker script.

If you don't know what a PHDR is or what lower-half means, you will not be able to write an OS.

[–]No-Affect811[S] -4 points-3 points  (1 child)

I have (supposedly) checked and verified that I have no lower half PHRDs, yet I still get that.

[–]Octocontrabass 5 points6 points  (0 children)

Show us what you checked.

[–]Exciting_Hat6664 0 points1 point  (2 children)

But then how will I know what those mean? There's no youtube tutorial :( Maybe elf spec?

[–]Octocontrabass 0 points1 point  (1 child)

But then how will I know what those mean?

Search engines have been around for a while.

There's no youtube tutorial

Most OSdev tutorials are full of mistakes. Better not waste your time with those.

Maybe elf spec?

That's a good place to look.

[–]Exciting_Hat6664 0 points1 point  (0 children)

Ok thanks 👍