Adding support for the x86_64-elf target to binutils and gcc
Posted: Sun Mar 13, 2005 5:34 am
Hi!
Yesterday, I was going to try to build a x86_64-elf cross-compiler. I, of course, had a look inside the wiki, and got a bit disappointed by reading the x86_64-elf stuff in the cross-compiler section.
Sure enough, it didn't work out of the box. There were problems with both binutils and gcc. Luckily, after some light hacking around, I got it to build, by adding various entries to configuration files around the source trees.
This is why I today am sitting with my lovely 'non os-specific' x86_64-elf toolchain.
Now, to the patches. Please note that this only was what I needed to build the toolchain. I used cvs snapshots of both gcc and binutils, so your results may vary:
http://omfg.linux.dk/pub/x86_64-elf/
http://omfg.linux.dk/pub/x86_64-elf/README
http://omfg.linux.dk/pub/x86_64-elf/binutils-add-clean-x86_64-elf-bfd-target.patch
http://omfg.linux.dk/pub/x86_64-elf/binutils-add-clean-x86_64-elf-ld-target.patch
http://omfg.linux.dk/pub/x86_64-elf/gcc-add-clean-x86_64-elf-config-target.patch
I have not yet posted these to the -dev mailing lists of either binutils or gcc, because I wanted some feedback first. So, please, post your results!
Thanks,
mkr
Yesterday, I was going to try to build a x86_64-elf cross-compiler. I, of course, had a look inside the wiki, and got a bit disappointed by reading the x86_64-elf stuff in the cross-compiler section.
Sure enough, it didn't work out of the box. There were problems with both binutils and gcc. Luckily, after some light hacking around, I got it to build, by adding various entries to configuration files around the source trees.
This is why I today am sitting with my lovely 'non os-specific' x86_64-elf toolchain.
Now, to the patches. Please note that this only was what I needed to build the toolchain. I used cvs snapshots of both gcc and binutils, so your results may vary:
http://omfg.linux.dk/pub/x86_64-elf/
http://omfg.linux.dk/pub/x86_64-elf/README
http://omfg.linux.dk/pub/x86_64-elf/binutils-add-clean-x86_64-elf-bfd-target.patch
http://omfg.linux.dk/pub/x86_64-elf/binutils-add-clean-x86_64-elf-ld-target.patch
http://omfg.linux.dk/pub/x86_64-elf/gcc-add-clean-x86_64-elf-config-target.patch
I have not yet posted these to the -dev mailing lists of either binutils or gcc, because I wanted some feedback first. So, please, post your results!
Thanks,
mkr