Hi,
I have already a working boot sector that reads from my fs, a boot loader that loads the kernel to RM memory, setup GDT, enter PM, copy the kernel from RM to PM and jump to it. I use DJGPP for compiling the kernel.
(Oh, and I made a GUI program to generate GDT descriptors, if anybody wants a copy, please email me).
The problem is I must link all kernel objects and set the code start to 0x0000 (with -Ttext). And what about data, how should I prepare the a GDT descriptor for it without knowing where the data is located in the memory? Do I have to recompile the bootloader each time?
I know ld have scripts, if something like:
SECTIONS {