DJGPP port of GNU Bintuils 2.11.2 with ELF support


I've rebuilt GNU Bintuils 2.11.2 to include ELF support. The following formats are built in:

coff-go32 coff-go32-exe a.out-i386 elf32-i386 coff-i386 elf32-little elf32-big srec symbolsrec tekhex binary ihex

The primary target is coff-go32. In order to set up your system to always produce ELF files, follow the following steps:
1. Find the SPECS file. It usually resides in drive:/djgpproot/lib/gcc-lib/djgpp/3.04.
2. Change the line --traditional-format (next to *asm:) to --em=i386elf, so that GAS will always produce ELF object files.
3. Delete the line %{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out} }}}}} (usually the last one), so that your ELF files won't get a DJGPP stub attached to them.
4. Create an empty djgpp-x.djl file in the same directory.
5. Always run LD with -m elf_i386 so that it will produce ELF executables.

And don't forget to backup original files, so that you can revert your changes =) .

I hope that should be enough. If you have any troubles, contact me at
Click here to download the ZIP file with binutils (3,256,973 bytes).

Kernel Panic <>
Hosted by uCoz