Mixing 32 and 64 bit code in elf
Posted: Wed Dec 21, 2011 3:28 am
I'm coding a 64bit loader for my os. I boots in protected mode from grub, loads the kernel and jumps to it in long mode. However I now need to have some long mode code in the 32bit loader. Is this possible? I'm sure ld won't let me do that. Do you know any ld script or command line hack, that will make me link object files for different architectures?
Thanks in advance.
Thanks in advance.