How to build an i686-elf toolchain?
Posted: Tue Jul 23, 2013 3:20 pm
I was able to successfully compile binutils and gcc targeting i386-elf and boot a simple OS compiled with it. However, I would like to make an i686-elf toolchain so I'm not so limited in regards to features in the future.
Using the same arguments as the i386-elf toolchain, substituting i686 where applicable, i686-elf-ld reports that its only emulation mode is elf-i386. I am 100% sure that I did not specify the target as i386-elf.
Here are my configures:
Binutils
GCC
I didn't rebuild gcc's floating point dependencies, but that shouldn't make a difference, AFAICT.
Any help would be greatly appreciated.
EDIT: I just noticed that in the --help of i686-elf-ld it says this:
But I have no idea why.
Using the same arguments as the i386-elf toolchain, substituting i686 where applicable, i686-elf-ld reports that its only emulation mode is elf-i386. I am 100% sure that I did not specify the target as i386-elf.
Here are my configures:
Binutils
Code: Select all
./configure --target=i686-elf
Code: Select all
../gcc/configure --target=i686-elf --without-headers --disable-libssp --enable-languages=c
Any help would be greatly appreciated.
EDIT: I just noticed that in the --help of i686-elf-ld it says this:
Code: Select all
i686-elf-ld: supported targets: elf32-i386 coff-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
i686-elf-ld: supported emulations: elf_i386
i686-elf-ld: emulation specific options:
elf_i386