Re: COFF to ELF translator (Ronald F. Guilmette)
22 Jul 1996 10:57:31 -0400

          From comp.compilers

Related articles
COFF to ELF translator (Lucile Cognard) (1996-07-18)
Re: COFF to ELF translator (Troy DeJongh) (1996-07-20)
Re: COFF to ELF translator (1996-07-22)
| List of all articles for this month |

From: (Ronald F. Guilmette)
Newsgroups: comp.compilers
Date: 22 Jul 1996 10:57:31 -0400
Organization: Infinite Monkeys & Co.
References: 96-07-112 96-07-132
Keywords: linker, tools

Lucile Cognard writes:
: Does it exist a translator from COFF format to ELF format?

Troy DeJongh <> wrote:
>Look at binutils from the GNU distribution. There is a program called
>'objcopy' that will allow you to do this. I've taken COFF executables from
>SCO UNIX and put them on my Solaris 2.5 X86 box and done a:
>objcopy -I coff-i386 -O elf32-i386 sco_coff_file new_elf_file

Another data point...

I believe most SVr4 implementation supply a program called `cof2elf'.

The following is a excerpt from the man page for the program on Solaris
2.4 on Sparc. (I know that `cof2elf' also exists for SVr4 on x86 system

cof2elf(1) User Commands cof2elf(1)

          cof2elf - COFF to ELF object file translation

          cof2elf [ -iqV ] [ -Qy|n ] [ -s directory ] files



          cof2elf converts one or more COFF object files to ELF. This
          translation occurs in place, which means that the original
          file contents are modified. If an input file is an archive,
          each member will be translated as necessary, and the archive
          will be rebuilt with its members in the original order.
          cof2elf does not change input files that are not COFF.

-- Ron Guilmette, Roseville, CA --
---- E-mail: -----

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.