Mail Archives: djgpp/2003/09/25/00:57:13
> From: "Bill Cunningham" <some AT some DOT net>
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 24 Sep 2003 23:31:30 -0400
>
> I was working with C++ and DJ compiler and compiled an object file. I
> used objdump and readelf to examine the symbol tables. Here's the weird
> part. readelf said my .o file wasn't a ELF file. It said coff. Now I must
> confess I don't know what coff is though I've seen it here and there. Is
> coff and GNU format or is it DJ's format?
Neither. It's a Unix format for binary files.
DJGPP uses COFF for object and executable code, and (by default) ELF
for debug info.
> I'd like to work with ELF if
> possible so I can write portable binaries for linux.
Sorry, this is not possible at the moment. You'd have to hack the
DJGPP port of Binutils to produce ELF binaries, and reconfigure and
rebuild GCC accordingly, before you can have it.
- Raw text -