To my understanding the page tables entries that point to the next page table need to be absolute addresses, so from 0x0.
Now I would like to generate my page tables before runtime and cannot know the absolute address because I don’t know at which address they end up exactly… so is it somehow possible to do that with relative (to table base address e.g.) addresses?
Greets from Germany
So I'm working with Zig (upcoming system programming lang and self proclaimed C competitor) which has a comptime feature. Sadly hard linked label addresses are not accessible during compile time. So there's probably some hack in C but I'm trying to solve that elegantly in zig, so I either have relative addressing or I have to do it at runtime