[SOLVED] How to link executable of different architectures ?
Posted: Wed Dec 11, 2013 2:46 pm
Hi,
I'm developing a 64bit kernel. Until now, I had an assembly step after the bootloader that is doing the 16 -> 32 -> 64 stuff and then it calls the kernel main function that is placed at a specific address by the linker.
I'm now trying to integrate this part inside my C++ kernel instead of creating two separated executables.
I figured out how to create 16-bit compatible and 32 bit executables, but now how do I put together the three C++ generated parts (16, 32, 64).
Is there a way to link them together ?
Thanks
I'm developing a 64bit kernel. Until now, I had an assembly step after the bootloader that is doing the 16 -> 32 -> 64 stuff and then it calls the kernel main function that is placed at a specific address by the linker.
I'm now trying to integrate this part inside my C++ kernel instead of creating two separated executables.
I figured out how to create 16-bit compatible and 32 bit executables, but now how do I put together the three C++ generated parts (16, 32, 64).
Is there a way to link them together ?
Thanks