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.
Mixing 32 and 64 bit code in elf
- AlfaOmega08
- Member
- Posts: 226
- Joined: Wed Nov 07, 2007 12:15 pm
- Location: Italy
Mixing 32 and 64 bit code in elf
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...
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...