Request: make coff2omf free

John Reimer terminal.node at gmail.com
Sun Feb 25 09:33:59 PST 2007


On Sun, 25 Feb 2007 18:28:04 +0100, Frits van Bommel wrote:

> Julio César Carrascal Urquijo wrote:
>> Walter Bright wrote:
>>> Since I have to support Elf anyway, it still leaves me supporting two 
>>> formats.
>>>
>> 
>> I take from this that you plan on dumping OMF support on DMD for Windows 
>> and generate ELF .obj on both platforms. Right?
>> 
>> Wouldn't that defeat the purpose of:
>> 
>>  > Uses Existing Tools
>>  >
>>  > D produces code in standard object file format, enabling the use of
>>  > standard assemblers, linkers, debuggers, profilers, exe compressors,
>>  > and other analyzers, as well as linking to code written in other
>>  > languages.
>> 
>> http://www.digitalmars.com/d/overview.html
>> 
>> I haven't seen any linker / librarian on windows that support ELF.
> 
> I have: Binutils (ld and friends) can easily be compiled on Windows with 
> support for ELF.
> Unfortunately, IIRC it can't support PE at the same time :(. It seems 
> the MinGW patches break support for other file formats...
> 


Yes, I noticed that ld.exe supported several formats.  I had not idea
whether it worked or not.  Thanks for clarifying :(.  Maybe there's a
deeper reason for why PE and elf can't work together?


>> Also, I think this change will adversely affect DDL 
>> (http://dsource.org/projects/ddl/) since it loads the .obj files and 
>> links them directly into the application.
> 
> DDL already supports ELF (as well as COFF/PE). I can't find any mention 
> on the site that this feature is not available on Windows.


Where, oh where is Pragma?  He could tell us... :)

Or I may just go try it out...

-JJR



More information about the Digitalmars-d mailing list