Request: make coff2omf free

John Reimer terminal.node at gmail.com
Sun Feb 25 09:07:38 PST 2007


On Sun, 25 Feb 2007 01:26:12 -0800, Walter Bright wrote:

> John Reimer wrote:
>> On Sat, 24 Feb 2007 22:33:11 -0800, Walter Bright wrote:
>> 
>>> Why does Mingw do coff on Win32, while the gcc tools everywhere else do 
>>> elf? This makes no sense to me.
>> 
>> 
>> It seems that elf is an object /and/ executable format, so it requires
>> support from the OS somehow.
> 
> If you don't want to take my word for it, ok, but object files output 
> from C, C++, and D compilers are not executable - not on Windows or Linux.
> 


Wait wait... I didn't mean to say that the elf files output by dmd are
directly executable, but elf files (if they are still considered
such) output by the linker stage are (dynamic or otherwise). :P  How much
does ld change these files?  I imagine they are in some class of elf format
after they go through the linker so that they can be considered
executable.  If the file format of the output file continues to be called
elf than elf effectively has an object and executable format.


>> Whereas coff is merely an object format and PE appears to be windows
>> executable format.
> 
> PE is similar to coff, but that doesn't mean you can run coff object files.
> 


Well no, I realize that I can't up and run an object.obj if I want to. :p

-JJR



More information about the Digitalmars-d mailing list