Mixing 32 and 64 bit code in elf

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
AlfaOmega08
Member
Member
Posts: 226
Joined: Wed Nov 07, 2007 12:15 pm
Location: Italy

Mixing 32 and 64 bit code in elf

Post by AlfaOmega08 »

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.
Please, correct my English...
Motherboard: ASUS Rampage II Extreme
CPU: Core i7 950 @ 3.06 GHz OC at 3.6 GHz
RAM: 4 GB 1600 MHz DDR3
Video: nVidia GeForce 210 GTS... it sucks...
Post Reply